]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/ingres.c
Tweak some comments and formatting.
[bacula/bacula] / bacula / src / cats / ingres.c
index 0cc52a16f8f6fd29a58272af6c070d934bd609aa..b48fcf9052024eb17f5b71b648b78e51998b29f9 100755 (executable)
@@ -204,6 +204,13 @@ B_DB_INGRES::B_DB_INGRES(JCR *jcr,
    esc_obj = get_pool_memory(PM_FNAME);
    m_allow_transactions = mult_db_connections;
 
+   /* At this time, when mult_db_connections == true, this is for 
+    * specific console command such as bvfs or batch mode, and we don't
+    * want to share a batch mode or bvfs. In the future, we can change
+    * the creation function to add this parameter.
+    */
+   m_dedicated = mult_db_connections; 
+
    /*
     * Initialize the private members.
     */
@@ -283,9 +290,9 @@ void B_DB_INGRES::db_close_database(JCR *jcr)
 {
    db_end_transaction(jcr);
    P(mutex);
-   sql_free_result();
    m_ref_count--;
    if (m_ref_count == 0) {
+      sql_free_result();
       db_list->remove(this);
       if (m_connected && m_db_handle) {
          INGdisconnectDB(m_db_handle);