]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/sql_list.c
Split messages line by line before sending it to syslog() fix #3325
[bacula/bacula] / bacula / src / cats / sql_list.c
index e951e36e56d48eddbf5e4e1c5d565fa19caf78ac..a78e6153565f8eb3eb35c1df68fd1994132552e2 100644 (file)
@@ -34,7 +34,6 @@
  */
 
 #include "bacula.h"
-#include "cats.h"
 
 #if HAVE_SQLITE3 || HAVE_MYSQL || HAVE_POSTGRESQL || HAVE_INGRES || HAVE_DBI
 
@@ -506,11 +505,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;