mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
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:
parent
f14412321b
commit
cba2d13456
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue