in getOnlineDisks wait for disks to be populated (#10685)

This commit is contained in:
Klaus Post 2020-10-15 06:37:10 -07:00 committed by GitHub
parent 2042d4873c
commit 3820a905e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,6 +65,7 @@ func (er erasureObjects) getOnlineDisks() (newDisks []StorageAPI) {
mu.Unlock()
}()
}
wg.Wait()
return newDisks
}