diff options
Diffstat (limited to 'core/src/stored/bscan.cc')
-rw-r--r-- | core/src/stored/bscan.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/src/stored/bscan.cc b/core/src/stored/bscan.cc index 041f0ee17..6c5fbb5da 100644 --- a/core/src/stored/bscan.cc +++ b/core/src/stored/bscan.cc @@ -699,7 +699,7 @@ static bool RecordCb(DeviceControlRecord* dcr, DeviceRecord* rec) UpdateJobRecord(db, &jr, &elabel, rec); mjcr->end_time = jr.EndTime; - mjcr->setJobStatus(JS_Terminated); + mjcr->setJobStatusWithPriorityCheck(JS_Terminated); // Create JobMedia record mjcr->impl->read_dcr->VolLastIndex = dcr->VolLastIndex; @@ -1258,7 +1258,7 @@ static bool UpdateJobRecord(BareosDb* db, jr->JobId = mjcr->JobId; jr->JobStatus = elabel->JobStatus; - mjcr->JobStatus = elabel->JobStatus; + mjcr->setJobStatus(elabel->JobStatus); jr->JobFiles = elabel->JobFiles; if (jr->JobFiles > 0) { /* If we found files, force PurgedFiles */ jr->PurgedFiles = 0; @@ -1294,7 +1294,7 @@ static bool UpdateJobRecord(BareosDb* db, char sdt[50], edt[50]; char ec1[30], ec2[30], ec3[30]; - switch (mjcr->JobStatus) { + switch (mjcr->getJobStatus()) { case JS_Terminated: TermMsg = _("Backup OK"); break; @@ -1310,7 +1310,7 @@ static bool UpdateJobRecord(BareosDb* db, break; default: TermMsg = term_code; - sprintf(term_code, _("Job Termination code: %d"), mjcr->JobStatus); + sprintf(term_code, _("Job Termination code: %d"), mjcr->getJobStatus()); break; } bstrftime(sdt, sizeof(sdt), mjcr->start_time); @@ -1427,7 +1427,7 @@ static JobControlRecord* create_jcr(JobDbRecord* jr, jobjcr->impl = new JobControlRecordPrivate; jobjcr->setJobType(jr->JobType); jobjcr->setJobLevel(jr->JobLevel); - jobjcr->JobStatus = jr->JobStatus; + jobjcr->setJobStatus(jr->JobStatus); bstrncpy(jobjcr->Job, jr->Job, sizeof(jobjcr->Job)); jobjcr->JobId = JobId; /* this is JobId on tape */ jobjcr->sched_time = jr->SchedTime; |