fix: server panic in FS mode (#10455)

fixes #10454
This commit is contained in:
Harshavardhana 2020-09-10 09:16:26 -07:00 committed by GitHub
parent 4a2928eb49
commit e959c5d71c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,6 +68,9 @@ func newBgHealSequence() *healSequence {
}
func getLocalBackgroundHealStatus() (madmin.BgHealState, bool) {
if globalBackgroundHealState == nil {
return madmin.BgHealState{}, false
}
bgSeq, ok := globalBackgroundHealState.getHealSequenceByToken(bgHealingUUID)
if !ok {
return madmin.BgHealState{}, false