From f4ff64f9da55307d13d54b12da6173ce80692251 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 20 Aug 2009 21:42:05 +0200 Subject: [PATCH] in status slots command, unlock db just after sql query --- bacula/src/dird/ua_label.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/dird/ua_label.c b/bacula/src/dird/ua_label.c index 6d7e9fe90e..83a1e7563f 100644 --- a/bacula/src/dird/ua_label.c +++ b/bacula/src/dird/ua_label.c @@ -1123,6 +1123,7 @@ void status_slots(UAContext *ua, STORE *store_r) if (!db_get_pool_record(ua->jcr, ua->db, &pr)) { strcpy(pr.Name, "?"); } + db_unlock(ua->db); if (ua->api) { ua->send_msg(slot_api_full_format, @@ -1138,7 +1139,6 @@ void status_slots(UAContext *ua, STORE *store_r) mr.VolumeName, mr.VolStatus, mr.MediaType, pr.Name); } - db_unlock(ua->db); continue; } else { /* TODO: get information from catalog */ if (ua->api) { -- 2.39.5