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 f14412321b
commit cba2d13456

View file

@ -1363,7 +1363,7 @@ func (pt *partition) removeStaleParts() {
pt.snapshotLock.RLock() pt.snapshotLock.RLock()
var removeWG sync.WaitGroup var removeWG sync.WaitGroup
for pw := range m { 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) removeWG.Add(1)
fs.MustRemoveAllWithDoneCallback(pw.p.path, removeWG.Done) fs.MustRemoveAllWithDoneCallback(pw.p.path, removeWG.Done)
} }