* Special test here since a Virtual Full gets marked
* as a Full, so we look at the resource record
*/
- if (jcr->job->JobLevel == L_VIRTUAL_FULL) {
+ if (jcr->wasVirtualFull) {
jcr->setJobLevel(L_VIRTUAL_FULL);
}
jobq_add(jq, jcr); /* queue the job to run again */
* Special test here since a Virtual Full gets marked
* as a Full, so we look at the resource record
*/
- if (jcr->job->JobLevel == L_VIRTUAL_FULL) {
+ if (jcr->wasVirtualFull) {
njcr->setJobLevel(L_VIRTUAL_FULL);
} else {
njcr->setJobLevel(jcr->getJobLevel());
/*
Bacula® - The Network Backup Solution
- Copyright (C) 2008-2009 Free Software Foundation Europe e.V.
+ Copyright (C) 2008-2011 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
* to do the backup.
* When the File daemon finishes the job, update the DB.
*
- * Version $Id: $
*/
#include "bacula.h"
((STORE *)jcr->rstorage->first())->name(),
((STORE *)jcr->wstorage->first())->name());
+ jcr->wasVirtualFull = true; /* remember where we came from */
+
/* Print Job Start message */
Jmsg(jcr, M_INFO, 0, _("Start Virtual Backup JobId %s, Job=%s\n"),
edit_uint64(jcr->JobId, ed1), jcr->Job);
int32_t reschedule_count; /* Number of times rescheduled */
int32_t FDVersion; /* File daemon version number */
int64_t spool_size; /* Spool size for this job */
+ bool wasVirtualFull; /* set if job was VirtualFull */
bool spool_data; /* Spool data in SD */
bool acquired_resource_locks; /* set if resource locks acquired */
bool term_wait_inited; /* Set when cond var inited */