]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/verify.c
Turn off debug
[bacula/bacula] / bacula / src / dird / verify.c
index 8f6b84a776a9f6a87d8f4b4ed68908d831920ce6..192cbbc2c1fc607c4cfff2c5707fbe0e98cf4db4 100644 (file)
@@ -322,6 +322,8 @@ bool do_verify(JCR *jcr)
       jcr->sd_msg_thread_done = true;   /* no SD msg thread, so it is done */
       jcr->SDJobStatus = JS_Terminated;
       get_attributes_and_put_in_catalog(jcr);
+      db_end_transaction(jcr, jcr->db);   /* terminate any open transaction */
+      db_write_batch_file_records(jcr);
       break;
 
    default:
@@ -721,7 +723,7 @@ int get_attributes_and_compare_to_catalog(JCR *jcr, JobId_t JobId)
    if (is_bnet_error(fd)) {
       berrno be;
       Jmsg2(jcr, M_FATAL, 0, _("bdird<filed: bad attributes from filed n=%d : %s\n"),
-                        n, be.strerror());
+                        n, be.bstrerror());
       return false;
    }