]> git.sur5r.net Git - bacula/bacula/commitdiff
bvfs: Use single transaction for each job during update
authorEric Bollengier <eric@eb.homelinux.org>
Fri, 4 Nov 2011 09:20:43 +0000 (10:20 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:11 +0000 (14:50 +0200)
bacula/src/cats/bvfs.c

index 9aa58124f6d8a5f9b697176878293140550aeb72..9131a00baf5c79a8bb1112c7070d49bb9e767d4d 100644 (file)
@@ -445,7 +445,6 @@ void bvfs_update_cache(JCR *jcr, B_DB *mdb)
    db_list_ctx jobids_list;
 
    db_lock(mdb);
-   db_start_transaction(jcr, mdb);
 
 #ifdef xxx
    /* TODO: Remove this code when updating make_bacula_table script */
@@ -496,7 +495,6 @@ void bvfs_update_cache(JCR *jcr, B_DB *mdb)
 
    bvfs_update_path_hierarchy_cache(jcr, mdb, jobids_list.list);
 
-   db_end_transaction(jcr, mdb);
    db_start_transaction(jcr, mdb);
    Dmsg0(dbglevel, "Cleaning pathvisibility\n");
    Mmsg(mdb->cmd,