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

This commit is contained in:
Anis Eleuch authored and GitHub committed 2023-04-18 14:49:56 -07:00
1 parent 0db34e4b85
commit 224d9a752f
4 files changed
+104 -32

No files matched your search

+1 -1
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