From: Eric Bollengier Date: Sun, 6 Feb 2011 10:46:17 +0000 (+0100) Subject: Fix double query in db_list_basefiles() X-Git-Tag: Release-7.0.0~1150 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0c09fd452e8b16cb8dfaf3a77c97d4a602a11299;p=bacula%2Fbacula Fix double query in db_list_basefiles() --- diff --git a/bacula/src/cats/sql_list.c b/bacula/src/cats/sql_list.c index e951e36e56..ed45966a4c 100644 --- a/bacula/src/cats/sql_list.c +++ b/bacula/src/cats/sql_list.c @@ -506,11 +506,6 @@ db_list_base_files_for_job(JCR *jcr, B_DB *mdb, JobId_t jobid, DB_LIST_HANDLER * edit_int64(jobid, ed1)); } - if (!QUERY_DB(jcr, mdb, mdb->cmd)) { - db_unlock(mdb); - return; - } - if (!db_big_sql_query(mdb, mdb->cmd, list_result, &lctx)) { db_unlock(mdb); return;