From: Eric Bollengier Date: Thu, 10 May 2007 21:01:55 +0000 (+0000) Subject: ebl fix debug X-Git-Tag: Release-7.0.0~6387 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7a937d2aebf530be2170105ebf4458ad06849aa8;p=bacula%2Fbacula ebl fix debug git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4744 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/cats/sql_create.c b/bacula/src/cats/sql_create.c index cdf41cf1a5..ee6b731c71 100644 --- a/bacula/src/cats/sql_create.c +++ b/bacula/src/cats/sql_create.c @@ -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;