From cf9475d4b30be9981ce0aac3088e7ec74a87f4ad Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Fri, 23 Mar 2007 22:34:50 +0000 Subject: [PATCH] ebl fix batch evry x files git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4402 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/cats/sql_create.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bacula/src/cats/sql_create.c b/bacula/src/cats/sql_create.c index 39d0dc4282..184dc6329d 100644 --- a/bacula/src/cats/sql_create.c +++ b/bacula/src/cats/sql_create.c @@ -873,10 +873,10 @@ bool db_create_file_attributes_record(JCR *jcr, B_DB *mdb, ATTR_DBR *ar) /* - if (jcr->changes > 100000) { + if (bdb->changes > 100000) { db_write_batch_file_records(jcr); - jcr->changes = 0; - sql_batch_start(jcr, jcr->db_batch); + bdb->changes = 0; + sql_batch_start(jcr, bdb); } */ -- 2.39.5