From cba2d13456cf26ba14b473dbae0dcb6336c3caa5 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 27 Apr 2021 13:31:48 +0300 Subject: [PATCH] lib/storage: typo fix in info message when deleting the part outside the configured retention Previously the message was displaying incorrect retention time --- lib/storage/partition.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/storage/partition.go b/lib/storage/partition.go index 0196b916b9..3d7f43fac8 100644 --- a/lib/storage/partition.go +++ b/lib/storage/partition.go @@ -1363,7 +1363,7 @@ func (pt *partition) removeStaleParts() { pt.snapshotLock.RLock() var removeWG sync.WaitGroup for pw := range m { - logger.Infof("removing part %q, since its data is out of the configured retention (%d secs)", pw.p.path, retentionDeadline/1000) + logger.Infof("removing part %q, since its data is out of the configured retention (%d secs)", pw.p.path, pt.retentionMsecs/1000) removeWG.Add(1) fs.MustRemoveAllWithDoneCallback(pw.p.path, removeWG.Done) }