From: Kern Sibbald Date: Sat, 10 Apr 2010 10:18:26 +0000 (+0200) Subject: Revert "Lets close the session based on session_id so we close the session we want... X-Git-Tag: Release-5.0.2~49 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=67d9695dacd71d6efc6a23fe0c060e2baa69c3fd;p=bacula%2Fbacula Revert "Lets close the session based on session_id so we close the session we want to close not just an active connection." This reverts commit f3c6e021a48cff1bf5337eca37f471b2bb58a204. --- diff --git a/bacula/src/cats/myingres.sc b/bacula/src/cats/myingres.sc index cf1678dce0..898a9a61fb 100644 --- a/bacula/src/cats/myingres.sc +++ b/bacula/src/cats/myingres.sc @@ -591,14 +591,10 @@ INGconn *INGconnectDB(char *dbname, char *user, char *passwd) void INGdisconnectDB(INGconn *dbconn) { - EXEC SQL BEGIN DECLARE SECTION; - int sess_id; - EXEC SQL END DECLARE SECTION; - - sess_id = dbconn->session_id; - - EXEC SQL DISCONNECT SESSION :sess_id; - + /* + * TODO: check for any real use of dbconn: maybe whenn multithreaded? + */ + EXEC SQL DISCONNECT; if (dbconn != NULL) { free(dbconn->msg); free(dbconn);