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

@@ -365,10 +365,10 @@ func (s *xlStorage) Healing() *healingTracker {
if err != nil {
return nil
}
var h healingTracker
h := newHealingTracker()
_, err = h.UnmarshalMsg(b)
logger.LogIf(GlobalContext, err)
return &h
return h
}
// checkODirectDiskSupport asks the disk to write some data