Skip to content

Commit bcbda03

Browse files
committed
fixup! 04ac34d
1 parent 04ac34d commit bcbda03

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

storage/innobase/handler/backup_innodb.cc

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ class InnoDB_backup
448448
int s= openat(target, "ib_logfile101", O_RDONLY);
449449
std::string dst;
450450
log_sys.append_archive_name(dst, first_lsn);
451-
int d;
451+
int d{-1};
452452
if (s == -1)
453453
{
454454
my_error(ER_FILE_NOT_FOUND, MYF(ME_ERROR_LOG), "ib_logfile101",
@@ -487,12 +487,7 @@ class InnoDB_backup
487487
# ifdef __APPLE__
488488
close:
489489
# endif
490-
if (close(s))
491-
{
492-
my_error(ER_ERROR_ON_CLOSE, MYF(ME_ERROR_LOG), "ib_logfile101",
493-
errno);
494-
fail= 1;
495-
}
490+
std::ignore= close(s);
496491
}
497492
done:;
498493
#endif

0 commit comments

Comments
 (0)