Skip to content

Commit

Permalink
Merge pull request #810 from alaaeddineelamri/dev/alaaeddineelamri/ma…
Browse files Browse the repository at this point in the history
…ster/bug-0001194-incremental-backup

Fix bug-0001194: accurate incremental backup
  • Loading branch information
pstorz committed May 20, 2021
2 parents a716fbd + b68b1f1 commit c4d80cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -8,6 +8,7 @@ and since Bareos version 20 this project adheres to [Semantic Versioning](https:
### Fixed
- fix shutdown of the Storage Daemon backends, especially call UnlockDoor on tape devices [PR #809]
- fix possible deadlock in storage backend on Solaris and FreeBSD [PR #809]
- [bug-0001194]: when doing an accurate incremental backup, if there is a database error, a full backup is done instead of reporting the error [PR #810]
- fix a bug in a date function that leads to errors on the 31st day of a month [PR #782]
- fix possible read/write problems when using droplet with https [PR #765]
- fix "configure add" handling of quoted strings [PR #764]
Expand Down
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 c4d80cf

Please sign in to comment.