]> git.sur5r.net Git - bacula/bacula/commitdiff
Revert "Lets close the session based on session_id so we close the session we want...
authorKern Sibbald <kern@sibbald.com>
Sat, 10 Apr 2010 10:18:26 +0000 (12:18 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 10 Apr 2010 10:18:26 +0000 (12:18 +0200)
This reverts commit f3c6e021a48cff1bf5337eca37f471b2bb58a204.

bacula/src/cats/myingres.sc

index cf1678dce05cf351e88cb156fbcaa33e3e5bc9d8..898a9a61fb7a7a67cc5ef9257d2a5e890b478b97 100644 (file)
@@ -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);