Optimize background heal status to use LocalStorageInfo (#16414)

This commit is contained in:
Anis Elleuch authored and GitHub committed 2023-01-17 05:02:00 +05:30
1 parent 095fc0561d
commit 3039fd4519
5 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -1102,7 +1102,7 @@ func (a adminAPIHandlers) HealHandler(w http.ResponseWriter, r *http.Request) {
// If no ObjectLayer is provided no set status is returned.
func getAggregatedBackgroundHealState(ctx context.Context, o ObjectLayer) (madmin.BgHealState, error) {
// Get local heal status first
bgHealStates, ok := getBackgroundHealStatus(ctx, o)
bgHealStates, ok := getLocalBackgroundHealStatus(ctx, o)
if !ok {
return bgHealStates, errServerNotInitialized
}