]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl fix debug
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 10 May 2007 21:01:55 +0000 (21:01 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 10 May 2007 21:01:55 +0000 (21:01 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4744 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/cats/sql_create.c

index cdf41cf1a5ce40562e7cfa42e1dd75807db6d641..ee6b731c7130f1c46ae28115a207af3fe2d7e191 100644 (file)
@@ -748,13 +748,13 @@ bool my_batch_end(JCR *jcr, B_DB *mdb, const char *error)
  */
 bool db_write_batch_file_records(JCR *jcr)
 {
-   Dmsg1(50,"db_create_file_record changes=%u\n",jcr->db_batch->changes);
-
    if (!jcr->db_batch) {         /* no files to backup ? */
       Dmsg0(50,"db_create_file_record : no files\n");
       return true;
    }
 
+   Dmsg1(50,"db_create_file_record changes=%u\n",jcr->db_batch->changes);
+
    if (!sql_batch_end(jcr, jcr->db_batch, NULL)) {
       Jmsg(jcr, M_FATAL, 0, "Bad batch end %s\n", jcr->db_batch->errmsg);
       return false;