Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

Commit

Permalink
Revert "Forgive the case when a whiteout file trying to cover nonexis…
Browse files Browse the repository at this point in the history
…tent path (#358)" (#360)

This reverts commit 026a501.
  • Loading branch information
sema authored Mar 15, 2021
1 parent 026a501 commit 821d255
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/snapshot/mem_layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"sort"
"strings"

"github.com/uber/makisu/lib/log"
"github.com/uber/makisu/lib/pathutils"
"github.com/uber/makisu/lib/tario"
)
Expand Down Expand Up @@ -115,9 +114,7 @@ func (f *whiteoutMemFile) updateMemFS(node *memFSNode) error {
if i != len(parts)-1 {
return fmt.Errorf("missing intermediate dir %s in %s", part, f.del)
}
// This could happen to files that's cleaned up in the background, like
// python package's .dist-info or .pth file.
log.Warnf("Trying to whiteout nonexistent path: %s", f.del)
return fmt.Errorf("whiteout nonexistent path %s", f.del)
}
}
return nil
Expand Down

0 comments on commit 821d255

Please sign in to comment.