Skip to content

Commit

Permalink
restore: fix failed restores showing Restore ok with warning
Browse files Browse the repository at this point in the history
  • Loading branch information
alaaeddineelamri committed Feb 21, 2023
1 parent 0a171d1 commit d708c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/dird/restore.cc
Expand Up @@ -423,10 +423,10 @@ void NativeRestoreCleanup(JobControlRecord* jcr, int TermCode)
if (JobCanceled(jcr)) { CancelStorageDaemonJob(jcr); }

if (jcr->dir_impl->ExpectedFiles != jcr->JobFiles) {
TermCode = JS_Warnings;
Jmsg(jcr, M_WARNING, 0,
_("File count mismatch: expected=%lu , restored=%lu\n"),
jcr->dir_impl->ExpectedFiles, jcr->JobFiles);
if (TermCode == JS_Terminated) { TermCode = JS_Warnings; }
}

switch (TermCode) {
Expand Down

0 comments on commit d708c45

Please sign in to comment.