kes Change message when job manually started to say Job queued. ...
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3747
91ce42f0-d328-0410-95d8-
f526ca767f89
BSOCK *sd;
JCR *mig_jcr = jcr->mig_jcr; /* newly migrated job */
+ /*
+ * If mig_jcr is NULL, there is nothing to do for this job,
+ * so set a normal status, cleanup and return OK.
+ */
if (!mig_jcr) {
- return false;
+ set_jcr_job_status(jcr, JS_Terminated);
+ migration_cleanup(jcr, jcr->JobStatus);
+ return true;
}
/* Print Job Start message */
bsendmsg(ua, _("Job failed.\n"));
} else {
char ed1[50];
- bsendmsg(ua, _("Job started. JobId=%s\n"), edit_int64(JobId,ed1));
+ bsendmsg(ua, _("Job queued. JobId=%s\n"), edit_int64(JobId,ed1));
}
return JobId;
}
General:
04Dec06
+kes Make migration with nothing to do set normal termination.
+kes Change message when job manually started to say Job queued. ...
kes Add job report indication of whether or not VSS and Encryption were
used by the FD.
kes Modify sparseBlock variable name to make the code clearer.