From 7a937d2aebf530be2170105ebf4458ad06849aa8 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 10 May 2007 21:01:55 +0000 Subject: [PATCH] ebl fix debug git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4744 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/cats/sql_create.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5