Fix for restore job locking when using SQLite

The SQLite db handle left open prevents the job from starting and permanently freezes "s dir" command in bconsole. Not tested with mysql and postgresql (but it shouldn't hurt)
This commit is contained in:
Dario Corti
2021-02-27 12:59:10 +01:00
committed by GitHub
parent 7fc04cff38
commit 7db7006a1a

View File

@@ -62,6 +62,8 @@ else {
@clients = ( [ $in{'client'}, $in{'job'} ] );
}
$dbh->disconnect();
foreach $clientjob (@clients) {
$client = $clientjob->[0];
$job = $clientjob->[1];