#include "bacula.h"
#include "cats.h"
-static const int dbglevel = 500;
+static const int dbglevel = 10;
#if HAVE_SQLITE3 || HAVE_MYSQL || HAVE_SQLITE || HAVE_POSTGRESQL || HAVE_DBI
bool db_create_base_file_attributes_record(JCR *jcr, B_DB *mdb, ATTR_DBR *ar)
{
bool ret;
- Dmsg1(dbglevel, "Fname=%s\n", ar->fname);
- Dmsg0(dbglevel, "put_file_into_catalog\n");
+ Dmsg1(dbglevel, "create_base_file Fname=%s\n", ar->fname);
+ Dmsg0(dbglevel, "put_base_file_into_catalog\n");
/*
* Make sure we have an acceptable attributes record.
goto bail_out;
}
+ if (jcr->get_JobLevel() == L_FULL && *jobids != 0) {
+ db_init_base_file(jcr, jcr->db);
+ }
+
/* For Incr/Diff level, we search for older jobs */
if (jcr->get_JobLevel() != L_FULL) {
db_accurate_get_jobids(jcr, jcr->db, &jcr->jr, jobids);
#include "bacula.h"
#include "filed.h"
-static int dbglvl=200;
+static int dbglvl=20;
typedef struct PrivateCurFile {
hlink link;
}
accurate_mark_file_as_seen(jcr, &elt);
-// Dmsg2(dbglvl, "accurate %s = %d\n", fname, stat);
+ Dmsg2(dbglvl, "accurate %s = %d\n", fname, stat);
bail_out:
unstrip_path(ff_pkt);