From 6cccbd4619a1c5b5c0d4d6af68a2633951507e66 Mon Sep 17 00:00:00 2001 From: Philipp Storz Date: Fri, 29 Sep 2017 09:06:27 +0200 Subject: [PATCH] Attribute batch inserting: create job log entries. We now create job log entries when the batch attribute table gets inserted into the database. We write a log entry when it starts and a job entry when its done. --- src/cats/sql_create.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cats/sql_create.c b/src/cats/sql_create.c index 4fe071ca9da..01b3800e145 100644 --- a/src/cats/sql_create.c +++ b/src/cats/sql_create.c @@ -831,6 +831,8 @@ bool db_write_batch_file_records(JCR *jcr) Dmsg1(50,"db_create_file_record changes=%u\n",jcr->db_batch->changes); jcr->JobStatus = JS_AttrInserting; + Jmsg1(jcr, M_INFO, 0, "Insert of attributes batch table with %u entries start\n", jcr->db_batch->changes); + if (!sql_batch_end(jcr, jcr->db_batch, NULL)) { Jmsg1(jcr, M_FATAL, 0, "Batch end %s\n", jcr->db_batch->errmsg); goto bail_out; @@ -889,6 +891,7 @@ bool db_write_batch_file_records(JCR *jcr) } jcr->JobStatus = JobStatus; /* reset entry status */ + Jmsg0(jcr, M_INFO, 0, "Insert of attributes batch table done\n"); retval = true; bail_out: