Optimize background heal status to use LocalStorageInfo (#16414)

This commit is contained in:
Anis Elleuch
2023-01-17 00:32:00 +01:00
committed by GitHub
parent 095fc0561d
commit 3039fd4519
5 changed files with 8 additions and 8 deletions

View File

@@ -1029,7 +1029,7 @@ func (s *peerRESTServer) BackgroundHealStatusHandler(w http.ResponseWriter, r *h
}
ctx := newContext(r, w, "BackgroundHealStatus")
state, ok := getBackgroundHealStatus(ctx, newObjectLayerFn())
state, ok := getLocalBackgroundHealStatus(ctx, newObjectLayerFn())
if !ok {
s.writeErrorResponse(w, errServerNotInitialized)
return