From: Eric Bollengier Date: Thu, 20 Aug 2009 19:42:05 +0000 (+0200) Subject: in status slots command, unlock db just after sql query X-Git-Tag: Release-5.0.0~332^2~9 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f4ff64f9da55307d13d54b12da6173ce80692251;p=bacula%2Fbacula in status slots command, unlock db just after sql query --- 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) {