]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/mysql.c
Split messages line by line before sending it to syslog() fix #3325
[bacula/bacula] / bacula / src / cats / mysql.c
index bc8b3b14b9f12a172945d5f46cf199d3b89969e1..ad81f1b56b5568f3def0f9100239a696625c03d4 100644 (file)
@@ -236,10 +236,10 @@ void B_DB_MYSQL::db_close_database(JCR *jcr)
 {
    db_end_transaction(jcr);
    P(mutex);
-   sql_free_result();
    m_ref_count--;
    Dmsg3(100, "closedb ref=%d connected=%d db=%p\n", m_ref_count, m_connected, m_db_handle);
    if (m_ref_count == 0) {
+      sql_free_result();
       db_list->remove(this);
       if (m_connected) {
          Dmsg1(100, "close db=%p\n", m_db_handle);
@@ -578,7 +578,7 @@ bool B_DB_MYSQL::sql_batch_start(JCR *jcr)
                               "Name blob,"
                               "LStat tinyblob,"
                               "MD5 tinyblob,"
-                              "MarkId integer)");
+                              "DeltaSeq integer)");
    db_unlock(this);
 
    return retval;