Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
  • Loading branch information
butonic committed Feb 17, 2022
1 parent 866682e commit 346fdc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/utils/decomposedfs/node/locks.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (n *Node) SetLock(ctx context.Context, lock *provider.Lock) error {
}

if err := os.MkdirAll(filepath.Dir(nodepath), 0700); err != nil {
sublog.Warn().Err(err).Msg("Decomposedfs: could not create node dir, trying to lock file anyway")
appctx.GetLogger(ctx).Warn().Err(err).Msg("Decomposedfs: could not create node dir, trying to lock file anyway")
}
// O_EXCL to make open fail when the file already exists
f, err := os.OpenFile(nodepath, os.O_EXCL|os.O_CREATE|os.O_WRONLY, 0600)
Expand Down

0 comments on commit 346fdc3

Please sign in to comment.