Skip to content

Commit 8634aff

Browse files
authored
Merge pull request #1145 from percona/PBM-1483-improve-getting-file-info-err
PBM-1483: Fix `no such file` error during physical restore
2 parents fb9b1c9 + af69502 commit 8634aff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pbm/storage/fs/fs.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ func (fs *FS) List(prefix, suffix string) ([]storage.FileInfo, error) {
198198

199199
info, err := entry.Info()
200200
if err != nil {
201+
if errors.Is(err, os.ErrNotExist) {
202+
// file was removed in the meantime, and that's fine
203+
return nil
204+
}
201205
return errors.Wrap(err, "getting file info")
202206
}
203207
if info.IsDir() {

0 commit comments

Comments
 (0)