Skip to content

Commit

Permalink
dir: fix for incremental backup bug
Browse files Browse the repository at this point in the history
Added check for file list fetching in case of failure
  • Loading branch information
alaaeddineelamri authored and pstorz committed May 20, 2021
1 parent a716fbd commit 1f8bc7d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions core/src/dird/backup.cc
Expand Up @@ -351,9 +351,13 @@ bool SendAccurateCurrentFiles(JobControlRecord* jcr)
return false; /* Fail */
}

jcr->db_batch->GetFileList(
jcr, jobids.GetAsString().c_str(), jcr->impl->use_accurate_chksum,
false /* no delta */, AccurateListHandler, (void*)jcr);
if (!jcr->db_batch->GetFileList(
jcr, jobids.GetAsString().c_str(), jcr->impl->use_accurate_chksum,
false /* no delta */, AccurateListHandler, (void*)jcr)) {
Jmsg(jcr, M_FATAL, 0, "error in jcr->db_batch->GetBaseFileList:%s\n",
jcr->db_batch->strerror());
return false;
}
}

jcr->file_bsock->signal(BNET_EOD);
Expand Down

0 comments on commit 1f8bc7d

Please sign in to comment.