]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/restore.c
Correct pool source setting
[bacula/bacula] / bacula / src / dird / restore.c
index ff7b18c99cdaa3d57da9538ccf448b4ec61af0f3..90fdb42a63756ad764dc9118199a03da85d77aab 100644 (file)
@@ -99,6 +99,9 @@ bool do_restore(JCR *jcr)
       restore_cleanup(jcr, JS_ErrorTerminated);
       return false;
    }
+   if (!bnet_fsend(jcr->store_bsock, "run")) {
+      return false;
+   }
    /*
     * Now start a Storage daemon message thread
     */
@@ -108,9 +111,6 @@ bool do_restore(JCR *jcr)
    }
    Dmsg0(50, "Storage daemon connection OK\n");
 
-   if (!bnet_fsend(jcr->store_bsock, "run")) {
-      return false;
-   }
 
    /*
     * Start conversation with File daemon
@@ -149,7 +149,7 @@ bool do_restore(JCR *jcr)
    }
 
 
-   if (!send_run_before_and_after_commands(jcr)) {
+   if (!send_runscripts_commands(jcr)) {
       restore_cleanup(jcr, JS_ErrorTerminated);
       return false;
    }