mirror of
https://github.com/minio/minio.git
synced 2025-01-11 23:13:23 -05:00
exit data update tracker only upon context completion (#10594)
The data update tracker saver would exit if data wasn't updated for between cycles.
This commit is contained in:
parent
00eb6f6bc9
commit
fdf0ae9167
@ -236,8 +236,11 @@ func (d *dataUpdateTracker) startSaver(ctx context.Context, interval time.Durati
|
|||||||
d.mu.Lock()
|
d.mu.Lock()
|
||||||
if !d.dirty {
|
if !d.dirty {
|
||||||
d.mu.Unlock()
|
d.mu.Unlock()
|
||||||
|
if exit {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
continue
|
||||||
|
}
|
||||||
d.Saved = UTCNow()
|
d.Saved = UTCNow()
|
||||||
err := d.serialize(&buf)
|
err := d.serialize(&buf)
|
||||||
if d.debug {
|
if d.debug {
|
||||||
|
Loading…
Reference in New Issue
Block a user