]> git.sur5r.net Git - bacula/bacula/commitdiff
Add debug code to MaxDiffInterval
authorKern Sibbald <kern@sibbald.com>
Wed, 1 Jul 2009 13:49:21 +0000 (13:49 +0000)
committerKern Sibbald <kern@sibbald.com>
Wed, 1 Jul 2009 13:49:21 +0000 (13:49 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8931 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/dird/fd_cmds.c
bacula/technotes

index 7d3ca3225dfcf999b12b30a03caa96b3d9a0ed91..4137fdfdfaedd4f13baff28bf71cdca31d4ea601 100644 (file)
@@ -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) {
index 74865a064537f4cc8f988595a31958a63a80ab17..99850567f5507208fff90287ed28225501fdaf52 100644 (file)
@@ -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