fix: the race in healing tracker code (#17048)

This commit is contained in:
Anis Eleuch
2023-04-18 22:49:56 +01:00
committed by GitHub
parent 0db34e4b85
commit 224d9a752f
4 changed files with 104 additions and 32 deletions

View File

@@ -380,7 +380,7 @@ func saveFormatErasure(disk StorageAPI, format *formatErasureV3, healID string)
disk.SetDiskID(diskID)
if healID != "" {
ctx := context.Background()
ht := newHealingTracker(disk, healID)
ht := initHealingTracker(disk, healID)
return ht.save(ctx)
}
return nil