From fdf0ae91674818f2510827c7469253f6b58a7611 Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Tue, 29 Sep 2020 13:23:53 -0700 Subject: [PATCH] exit data update tracker only upon context completion (#10594) The data update tracker saver would exit if data wasn't updated for between cycles. --- cmd/data-update-tracker.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/data-update-tracker.go b/cmd/data-update-tracker.go index e47a36df2..9dab996d7 100644 --- a/cmd/data-update-tracker.go +++ b/cmd/data-update-tracker.go @@ -236,7 +236,10 @@ func (d *dataUpdateTracker) startSaver(ctx context.Context, interval time.Durati d.mu.Lock() if !d.dirty { d.mu.Unlock() - return + if exit { + return + } + continue } d.Saved = UTCNow() err := d.serialize(&buf)