From 67d9695dacd71d6efc6a23fe0c060e2baa69c3fd Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 10 Apr 2010 12:18:26 +0200 Subject: [PATCH] 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. --- bacula/src/cats/myingres.sc | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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); -- 2.39.5