mirror of
https://github.com/minio/minio.git
synced 2025-11-07 04:42:56 -05:00
fix: make sure to lock CopyObject for in-place updates (#10492)
This commit is contained in:
@@ -426,6 +426,8 @@ func (d *dataUpdateTracker) deserialize(src io.Reader, newerThan time.Time) erro
|
||||
}
|
||||
// Ignore what remains on the stream.
|
||||
// Update d:
|
||||
d.mu.Lock()
|
||||
defer d.mu.Unlock()
|
||||
d.Current = dst.Current
|
||||
d.History = dst.History
|
||||
d.Saved = dst.Saved
|
||||
|
||||
Reference in New Issue
Block a user