]> git.sur5r.net Git - bacula/bacula/commitdiff
Use a dedicated connexion when VirtualFull computes the file list.
authorEric Bollengier <eric@eb.homelinux.org>
Sat, 17 Apr 2010 12:29:02 +0000 (14:29 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:52:33 +0000 (16:52 +0200)
bacula/src/dird/vbackup.c

index 75869419d3c7191b722751d41ba4a796b3486e47..a171fd20424ff7dce8d373af7677e8ac3b07cb2d 100644 (file)
@@ -478,8 +478,15 @@ static bool create_bootstrap_file(JCR *jcr, char *jobids)
 
 #define new_get_file_list
 #ifdef new_get_file_list
-   if (!db_get_file_list(jcr, ua->db, jobids, insert_bootstrap_handler, (void *)rx.bsr)) {
-      Jmsg(jcr, M_ERROR, 0, "%s", db_strerror(ua->db));
+   if (!db_open_batch_connexion(jcr, jcr->db)) {
+      Jmsg0(jcr, M_FATAL, 0, "Can't get batch sql connexion");
+      return false;
+   }
+
+   if (!db_get_file_list(jcr, jcr->db_batch, jobids, 
+                         insert_bootstrap_handler, (void *)rx.bsr))
+   {
+      Jmsg(jcr, M_ERROR, 0, "%s", db_strerror(jcr->db_batch));
    }
 #else
    char *p;