diff --git a/cmd/format-fs.go b/cmd/format-fs.go index ad20701c8..c029460c5 100644 --- a/cmd/format-fs.go +++ b/cmd/format-fs.go @@ -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 }