if (jcr->is_canceled() || jcr->is_JobLevel(L_BASE)) {
return true;
}
- if (!jcr->accurate && !jcr->incomplete) {
+ if (!jcr->accurate && !jcr->rerunning) {
return true;
}
if (get_base_jobids(jcr, &jobids)) {
jcr->HasBase = true;
Jmsg(jcr, M_INFO, 0, _("Using BaseJobId(s): %s\n"), jobids.list);
- } else if (!jcr->incomplete) {
+ } else if (!jcr->rerunning) {
return true;
}
} else {
}
/* For incomplete Jobs, we add our own id */
- if (jcr->incomplete) {
+ if (jcr->rerunning) {
edit_int64(jcr->JobId, ed1);
jobids.add(ed1);
}
}
/* Print Job Start message */
- if (jcr->incomplete) {
+ if (jcr->rerunning) {
Jmsg(jcr, M_INFO, 0, _("Restart Incomplete Backup JobId %s, Job=%s\n"),
edit_uint64(jcr->JobId, ed1), jcr->Job);
} else {
}
/* For incomplete Jobs, we add our own id */
- if (jcr->incomplete) {
+ if (jcr->rerunning) {
edit_int64(jcr->JobId, ed1);
Mmsg(buf, "SELECT max(FileIndex) FROM File WHERE JobId=%s", ed1);
if (db_sql_query(jcr->db, buf.c_str(), db_int64_handler, &job)) {
BSOCK *fd = jcr->file_bsock;
const char *accurate = jcr->accurate?"accurate_":"";
const char *not_accurate = "";
- const char *incomplete = jcr->incomplete?" incomplete ":" ";
+ const char *rerunning = jcr->rerunning?" incomplete ":" ";
/*
* Send Level command to File daemon
*/
switch (jcr->getJobLevel()) {
case L_BASE:
- fd->fsend(levelcmd, not_accurate, "base", incomplete, 0);
+ fd->fsend(levelcmd, not_accurate, "base", rerunning, 0);
break;
/* L_NONE is the console, sending something off to the FD */
case L_NONE:
case L_FULL:
- fd->fsend(levelcmd, not_accurate, "full", incomplete, 0);
+ fd->fsend(levelcmd, not_accurate, "full", rerunning, 0);
break;
case L_DIFFERENTIAL:
- fd->fsend(levelcmd, accurate, "differential", incomplete, 0);
+ fd->fsend(levelcmd, accurate, "differential", rerunning, 0);
send_since_time(jcr);
break;
case L_INCREMENTAL:
- fd->fsend(levelcmd, accurate, "incremental", incomplete, 0);
+ fd->fsend(levelcmd, accurate, "incremental", rerunning, 0);
send_since_time(jcr);
break;
case L_SINCE:
* Reschedule this job by cleaning it up, but
* reuse the same JobId if possible.
*/
- jcr->incomplete = jcr->is_incomplete(); /* save incomplete status */
+ jcr->rerunning = jcr->is_incomplete(); /* save incomplete status */
time_t now = time(NULL);
jcr->reschedule_count++;
jcr->sched_time = now + jcr->job->RescheduleInterval;
return false;
}
/* Only jobs with no output or Incomplete jobs can run on same JCR */
- if (jcr->JobBytes == 0 || jcr->incomplete) {
+ if (jcr->JobBytes == 0 || jcr->rerunning) {
Dmsg2(2300, "Requeue job=%d use=%d\n", jcr->JobId, jcr->use_count());
V(jq->mutex);
jobq_add(jq, jcr); /* queue the job to run again */
static char jobcmd[] = "JobId=%s job=%s job_name=%s client_name=%s "
"type=%d level=%d FileSet=%s NoAttr=%d SpoolAttr=%d FileSetMD5=%s "
"SpoolData=%d WritePartAfterJob=%d PreferMountedVols=%d SpoolSize=%s "
- "incomplete=%d VolSessionId=%d VolSessionTime=%d\n";
+ "rerunning=%d VolSessionId=%d VolSessionTime=%d\n";
static char use_storage[] = "use storage=%s media_type=%s pool_name=%s "
"pool_type=%s append=%d copy=%d stripe=%d\n";
static char use_device[] = "use device=%s\n";
fileset_name.c_str(), !jcr->pool->catalog_files,
jcr->job->SpoolAttributes, jcr->fileset->MD5, jcr->spool_data,
jcr->write_part_after_job, jcr->job->PreferMountedVolumes,
- edit_int64(jcr->spool_size, ed2), jcr->incomplete,
+ edit_int64(jcr->spool_size, ed2), jcr->rerunning,
jcr->VolSessionId, jcr->VolSessionTime);
Dmsg1(100, ">stored: %s", sd->msg);
if (bget_dirmsg(sd) > 0) {
}
if (jcr->accurate) {
if (jcr->is_JobLevel(L_FULL)) {
- if (!jcr->incomplete) {
+ if (!jcr->rerunning) {
ret = accurate_send_base_file_list(jcr);
}
} else {
ff_pkt->delta_seq = 0;
- if (!jcr->accurate && !jcr->incomplete) {
+ if (!jcr->accurate && !jcr->rerunning) {
return true;
}
decode_stat(elt.lstat, &statc, &LinkFIc); /* decode catalog stat */
- if (!jcr->incomplete && (jcr->getJobLevel() == L_FULL)) {
+ if (!jcr->rerunning && (jcr->getJobLevel() == L_FULL)) {
opts = ff_pkt->BaseJobOpts;
} else {
opts = ff_pkt->AccurateOpts;
ff_pkt->flags & (FO_MD5|FO_SHA1|FO_SHA256|FO_SHA512)))
{
- if (!*elt.chksum && !jcr->incomplete) {
+ if (!*elt.chksum && !jcr->rerunning) {
Jmsg(jcr, M_WARNING, 0, _("Cannot verify checksum for %s\n"),
ff_pkt->fname);
stat = true;
if (strstr(dir->msg, "accurate")) {
jcr->accurate = true;
}
- if (strstr(dir->msg, "incomplete")) {
- jcr->incomplete = true;
+ if (strstr(dir->msg, "rerunning")) {
+ jcr->rerunning = true;
}
if (sscanf(dir->msg, "level = %s ", level) != 1) {
goto bail_out;
bool keep_path_list; /* Keep newly created path in a hash */
bool accurate; /* true if job is accurate */
bool HasBase; /* True if job use base jobs */
- bool incomplete; /* finishing an incomplete job */
+ bool rerunning; /* rerunning an incomplete job */
void *Python_job; /* Python Job Object */
void *Python_events; /* Python Events Object */
* An incomplete job can start the file_index at any number.
* otherwise, it must start at 1.
*/
- if (jcr->incomplete && file_index > 0 && last_file_index == 0) {
+ if (jcr->rerunning && file_index > 0 && last_file_index == 0) {
goto fi_checked;
}
if (file_index > 0 && (file_index == last_file_index ||
static char jobcmd[] = "JobId=%d job=%127s job_name=%127s client_name=%127s "
"type=%d level=%d FileSet=%127s NoAttr=%d SpoolAttr=%d FileSetMD5=%127s "
"SpoolData=%d WritePartAfterJob=%d PreferMountedVols=%d SpoolSize=%s "
- "incomplete=%d VolSessionId=%d VolSessionTime=%d\n";
+ "rerunning=%d VolSessionId=%d VolSessionTime=%d\n";
/* Responses sent to Director daemon */
static char OKjob[] = "3000 OK Job SDid=%u SDtime=%u Authorization=%s\n";
&JobType, &level, fileset_name.c_str(), &no_attributes,
&spool_attributes, fileset_md5.c_str(), &spool_data,
&write_part_after_job, &PreferMountedVols, spool_size,
- &jcr->incomplete, &jcr->VolSessionId, &jcr->VolSessionTime);
+ &jcr->rerunning, &jcr->VolSessionId, &jcr->VolSessionTime);
if (stat != 17) {
pm_strcpy(jcr->errmsg, dir->msg);
dir->fsend(BAD_job, stat, jcr->errmsg);
jcr->setJobStatus(JS_ErrorTerminated);
return false;
}
- Dmsg3(100, "==== incomplete=%d VolSesId=%d VolSesTime=%d\n", jcr->incomplete,
+ Dmsg3(100, "==== rerunning=%d VolSesId=%d VolSesTime=%d\n", jcr->rerunning,
jcr->VolSessionId, jcr->VolSessionTime);
/*
* Since this job could be rescheduled, we
* the Resched flag is set and VolSessionId and VolSessionTime
* are given to us (same as restarted job).
*/
- if (!jcr->incomplete) {
+ if (!jcr->rerunning) {
jcr->VolSessionId = newVolSessionId();
jcr->VolSessionTime = VolSessionTime;
}