From: Eric Bollengier Date: Wed, 29 Jul 2009 18:12:07 +0000 (+0200) Subject: init base file X-Git-Tag: Release-5.0.0~373 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bb1439361551501df9bd6fb04cc66a3bf433eb08;p=bacula%2Fbacula init base file --- diff --git a/bacula/src/cats/sql_create.c b/bacula/src/cats/sql_create.c index 5a11bead73..47b9cba4c2 100644 --- a/bacula/src/cats/sql_create.c +++ b/bacula/src/cats/sql_create.c @@ -41,7 +41,7 @@ #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 @@ -1146,8 +1146,8 @@ bool db_init_base_file(JCR *jcr, B_DB *mdb) 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. diff --git a/bacula/src/dird/backup.c b/bacula/src/dird/backup.c index bdf6fc92d3..3d92fd3840 100644 --- a/bacula/src/dird/backup.c +++ b/bacula/src/dird/backup.c @@ -182,6 +182,10 @@ bool send_accurate_current_files(JCR *jcr) 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); diff --git a/bacula/src/filed/accurate.c b/bacula/src/filed/accurate.c index e7ba84196d..c9cec9b40b 100644 --- a/bacula/src/filed/accurate.c +++ b/bacula/src/filed/accurate.c @@ -33,7 +33,7 @@ #include "bacula.h" #include "filed.h" -static int dbglvl=200; +static int dbglvl=20; typedef struct PrivateCurFile { hlink link; @@ -368,7 +368,7 @@ bool accurate_check_file(JCR *jcr, FF_PKT *ff_pkt) } 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);