lib/storage: typo fix in info message when deleting the part outside the configured retention

Previously the message was displaying incorrect retention time
This commit is contained in:
Aliaksandr Valialkin 2021-04-27 13:31:48 +03:00
parent 60947fb2d5
commit f89c1f7f49

View file

@ -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)
}