Skip to content

Commit

Permalink
Don't count failed restored files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent 9c05e91 commit 289135e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/filed/fd_plugins.c
Expand Up @@ -1152,7 +1152,8 @@ int plugin_create_file(JCR *jcr, ATTR *attr, BFILE *bfd, int replace)
Dmsg0(dbglvl, "call bopen\n");

status = bopen(bfd, attr->ofname, flags, S_IRUSR | S_IWUSR, attr->statp.st_rdev);
Dmsg1(dbglvl, "bopen status=%d\n", stat);
Dmsg1(dbglvl, "bopen status=%d\n", status);

if (status < 0) {
berrno be;
be.set_errno(bfd->berrno);
Expand Down
1 change: 1 addition & 0 deletions src/filed/restore.c
Expand Up @@ -599,6 +599,7 @@ void do_restore(JCR *jcr)
Dmsg2(130, "Outfile=%s create_file status=%d\n", attr->ofname, status);
switch (status) {
case CF_ERROR:
break;
case CF_SKIP:
jcr->JobFiles++;
break;
Expand Down

0 comments on commit 289135e

Please sign in to comment.