diff --git a/cmd/erasure-sets.go b/cmd/erasure-sets.go index ddc736d8a..deedf4a94 100644 --- a/cmd/erasure-sets.go +++ b/cmd/erasure-sets.go @@ -250,8 +250,8 @@ func (s *erasureSets) connectDisks() { } disk.SetDiskLoc(s.poolIndex, setIndex, diskIndex) s.endpointStrings[setIndex*s.setDriveCount+diskIndex] = disk.String() - s.erasureDisksMu.Unlock() setsJustConnected[setIndex] = true + s.erasureDisksMu.Unlock() }(endpoint) }