From: Kern Sibbald Date: Wed, 1 Jul 2009 13:49:21 +0000 (+0000) Subject: Add debug code to MaxDiffInterval X-Git-Tag: Release-3.0.2~135 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=edfffe456de676cc799719b684f883976d467f06;p=bacula%2Fbacula Add debug code to MaxDiffInterval git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8931 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/dird/fd_cmds.c b/bacula/src/dird/fd_cmds.c index 7d3ca3225d..4137fdfdfa 100644 --- a/bacula/src/dird/fd_cmds.c +++ b/bacula/src/dird/fd_cmds.c @@ -171,7 +171,7 @@ void get_level_since_time(JCR *jcr, char *since, int since_len) bool do_full = false; bool do_diff = false; utime_t now; - utime_t last_full_time; + utime_t last_full_time = 0; utime_t last_diff_time; since[0] = 0; @@ -203,6 +203,8 @@ void get_level_since_time(JCR *jcr, char *since, int since_len) } else { do_full = true; /* No full, upgrade to one */ } + Dmsg4(50, "have_full=%d do_full=%d now=%lld full_time=%lld\n", have_full, + do_full, now, last_full_time); /* Make sure the last diff is recent enough */ if (have_full && jcr->get_JobLevel() == L_INCREMENTAL && jcr->job->MaxDiffInterval > 0) { /* Lookup last diff job */ @@ -212,11 +214,15 @@ void get_level_since_time(JCR *jcr, char *since, int since_len) if (last_diff_time < last_full_time) { last_diff_time = last_full_time; } + Dmsg2(50, "last_diff_time=%lld last_full_time=%lld\n", last_diff_time, + last_full_time); } else { /* No last differential, so use last full time */ last_diff_time = last_full_time; + Dmsg1(50, "No last_diff_time setting to full_time=%lld\n", last_full_time); } do_diff = ((now - last_diff_time) >= jcr->job->MaxDiffInterval); + Dmsg2(50, "do_diff=%d diffInter=%lld\n", do_diff, jcr->job->MaxDiffInterval); } /* Note, do_full takes precedence over do_diff */ if (have_full && jcr->job->MaxFullInterval > 0) { diff --git a/bacula/technotes b/bacula/technotes index 74865a0645..99850567f5 100644 --- a/bacula/technotes +++ b/bacula/technotes @@ -2,6 +2,8 @@ General: +01Jul09 +kes Add debug code to MaxDiffInterval 29Jun09 kes Change bacula-dir.conf default job name from Client1 to BackupClient1. 28Jun09