mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
Do not close *lock.LockedFile on failure (#5565)
This commit is contained in:
parent
0ea54c9858
commit
e5e3d17216
@ -238,7 +238,6 @@ func initFormatFS(fsPath string) (rlk *lock.RLockedFile, err error) {
|
||||
wlk, err := lock.TryLockedOpenFile(fsFormatPath, os.O_RDWR, 0)
|
||||
if err == lock.ErrAlreadyLocked {
|
||||
// Lock already present, sleep and attempt again.
|
||||
wlk.Close()
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
continue
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user