mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
fix: protect ReplicationStats against concurrent map iteration and write crash (#17403)
This commit is contained in:
@@ -373,7 +373,7 @@ func (f *folderScanner) sendUpdate() {
|
||||
}
|
||||
if flat := f.updateCache.sizeRecursive(f.newCache.Info.Name); flat != nil {
|
||||
select {
|
||||
case f.updates <- *flat:
|
||||
case f.updates <- flat.clone():
|
||||
default:
|
||||
}
|
||||
f.lastUpdate = time.Now()
|
||||
|
||||
Reference in New Issue
Block a user