From 7db7006a1a3689c796fa8c28248a337967ea0cb1 Mon Sep 17 00:00:00 2001 From: Dario Corti Date: Sat, 27 Feb 2021 12:59:10 +0100 Subject: [PATCH] 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) --- bacula-backup/restore.cgi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bacula-backup/restore.cgi b/bacula-backup/restore.cgi index f062d4a62..4d2831326 100755 --- a/bacula-backup/restore.cgi +++ b/bacula-backup/restore.cgi @@ -62,6 +62,8 @@ else { @clients = ( [ $in{'client'}, $in{'job'} ] ); } +$dbh->disconnect(); + foreach $clientjob (@clients) { $client = $clientjob->[0]; $job = $clientjob->[1];