]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix double query in db_list_basefiles()
authorEric Bollengier <eric@eb.homelinux.org>
Sun, 6 Feb 2011 10:46:17 +0000 (11:46 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:40:01 +0000 (14:40 +0200)
bacula/src/cats/sql_list.c

index e951e36e56d48eddbf5e4e1c5d565fa19caf78ac..ed45966a4c2437b0c9d0a59533e461731d2ebf1d 100644 (file)
@@ -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;