]> git.sur5r.net Git - bacula/bacula/commitdiff
Remove debug print, make skeleton of HB restore and verify volume
authorKern Sibbald <kern@sibbald.com>
Sun, 4 May 2003 21:10:25 +0000 (21:10 +0000)
committerKern Sibbald <kern@sibbald.com>
Sun, 4 May 2003 21:10:25 +0000 (21:10 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@488 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/kernstodo
bacula/src/filed/heartbeat.c
bacula/src/filed/job.c
bacula/src/filed/protos.h

index e9224e573aed451831cef85d0a464e57a3423ad7..e1c9fd1959e40c516c02861a6355c035b578c2b5 100644 (file)
@@ -15,7 +15,9 @@ Testing to do: (painful)
 - blocksize recognition code.
 - multiple simultaneous Volumes
 
-For 1.30a release:
+For 1.31 release:
+- Fix Dir heartbeat in restore and verify vol.  Be sure to make
+  bnet_recv() ignore BNET_HEARTBEAT.
 - Examine Bare Metal restore problem.
 - Test multiple simultaneous Volumes
 - Document FInclude ...
@@ -25,7 +27,6 @@ For 1.30a release:
 
 - Figure out how to use ssh or stunnel to protect Bacula communications.
 
-After 1.30:
 - Fix command prompt in gnome-console by checking on Ready.
 - Implement HEART_BEAT while SD waiting for tapes.
 - Include RunBeforeJob and RunAfterJob output in the message
index cb090ae642cf9f3f92f65bf3060a6516d9548ef4..ba7841f6262d8d9425a5506ebf2bc913593f18c9 100644 (file)
@@ -67,7 +67,7 @@ static void *heartbeat_thread(void *arg)
       }
       if (n == 1) {                  /* input waiting */
         bnet_recv(sd);               /* read it -- probably heartbeat from sd */
-         Dmsg1(000, "Got %d from SD\n", sd->msglen);
+/*       Dmsg1(000, "Got %d from SD\n", sd->msglen); */
       }
    }
    bnet_close(sd);
@@ -99,3 +99,16 @@ void stop_heartbeat_monitor(JCR *jcr)
       bmicrosleep(0, 20);
    }
 }
+
+/*
+ * Same as above but we don't listen to the SD
+ */
+void start_dir_heartbeat(JCR *jcr)
+{
+   /* ***FIXME*** implement */
+}
+
+void stop_dir_heartbeat(JCR *jcr)
+{
+   /* ***FIXME*** implement */
+}
index 4f1ff4552a3d0dc7fa30a9f6c87b398a1f7df86a..020e49bac416db277db53ef4be3832c0656fe5b6 100644 (file)
@@ -668,7 +668,9 @@ static int verify_cmd(JCR *jcr)
       if (!open_sd_read_session(jcr)) {
         return 0;
       }
+      start_dir_heartbeat(jcr);
       do_verify_volume(jcr);
+      stop_dir_heartbeat(jcr);
       /* 
        * Send Close session command to Storage daemon
        */
@@ -744,8 +746,10 @@ static int restore_cmd(JCR *jcr)
    /* 
     * Do restore of files and data
     */
+   start_dir_heartbeat(jcr);
    do_restore(jcr);
-
+   stop_dir_heartbeat(jcr);
+   
    set_jcr_job_status(jcr, JS_Terminated);
    if (jcr->JobStatus != JS_Terminated) {
       bnet_suppress_error_messages(sd, 1);
index 0148ff07856994abcbe7f2f9e3bb361d352b9e8f..a2feeaf26de01043e16470ad40c804a5b3e6ab4d 100644 (file)
@@ -33,3 +33,5 @@ extern int make_estimate(JCR *jcr);
 /* From heartbeat.c */
 void start_heartbeat_monitor(JCR *jcr);
 void stop_heartbeat_monitor(JCR *jcr);
+void start_dir_heartbeat(JCR *jcr);
+void stop_dir_heartbeat(JCR *jcr);