]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl fix compile stuff
authorEric Bollengier <eric@eb.homelinux.org>
Mon, 5 Nov 2007 17:45:51 +0000 (17:45 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 5 Nov 2007 17:45:51 +0000 (17:45 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5854 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/filed/job.c

index e0f37ffe13504d9749871971829d9c14d47ab95c..125f2de9d454dcb238f43300330b0a628331c2df 100644 (file)
@@ -1321,6 +1321,25 @@ static int storage_cmd(JCR *jcr)
    return dir->fsend(OKstore);
 }
 
+static void job_end(JCR *jcr)
+{
+   char ed1[50], ed2[50];
+
+   /* Inform Storage daemon that we are done */
+   if (jcr->store_bsock) {
+      bnet_sig(jcr->store_bsock, BNET_TERMINATE);
+   }
+
+   /* Run the after job */
+   run_scripts(jcr, jcr->RunScripts, "ClientAfterJob");
+
+   bnet_fsend(jcr->dir_bsock, EndJob, jcr->JobStatus, jcr->JobFiles,
+             edit_uint64(jcr->ReadBytes, ed1),
+             edit_uint64(jcr->JobBytes, ed2), jcr->Errors, (int)jcr->VSS,
+             jcr->pki_encrypt);
+   Dmsg1(110, "End FD msg: %s\n", jcr->dir_bsock->msg);
+}
+
 
 /*
  * Do a backup.
@@ -1331,6 +1350,7 @@ static int backup_cmd(JCR *jcr)
    BSOCK *sd = jcr->store_bsock;
    int ok = 0;
    int SDJobStatus;
+   char ed1[50], ed2[50];
 
 #if defined(WIN32_VSS)
    // capture state here, if client is backed up by multiple directors