]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Using 2 transactions in brestore.pl -b mode
authorEric Bollengier <eric@eb.homelinux.org>
Mon, 15 Oct 2007 14:26:54 +0000 (14:26 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 15 Oct 2007 14:26:54 +0000 (14:26 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5751 91ce42f0-d328-0410-95d8-f526ca767f89

gui/brestore/ReleaseNotes
gui/brestore/brestore.pl

index 723a1ebc478ba7d1ec46d6337b9424c9bf6ba0bb..163243ba012b3c644f15e903879c97f19a650728 100644 (file)
@@ -1,5 +1,9 @@
           Release Notes for brestore 2.2.0
 
+Version 2.2.5-2:
+ - Use 2 transactions in brestore.pl -b
+   (you can use Ctrl-C in cleanup)
+
 Version 2.2.5-1:
  - Fix warning, thanks to Tuomas Jormola
 
index fb6178ceef2ede9b0e73e8980e87a3015bca8f1a..bfcbeaba63c3454302aa8a646baa5f7c497cd1b9 100755 (executable)
@@ -2397,6 +2397,9 @@ sub update_cache
 
     $self->update_brestore_table(map { $_->[0] } @$jobs);
 
+    $self->{conf}->{dbh}->commit();
+    $self->{conf}->{dbh}->begin_work();
+
     print STDERR "Cleaning path visibility\n";
     
     my $nb = $self->dbh_do("