mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/storage/table.go: reduce the difference with enterprise branch
This commit is contained in:
parent
b6d1d6982e
commit
ae6190f0b5
1 changed files with 5 additions and 1 deletions
|
@ -444,10 +444,14 @@ func (tb *table) finalDedupWatcher() {
|
|||
currentPartitionName := timestampToPartitionName(timestamp)
|
||||
var ptwsToDedup []*partitionWrapper
|
||||
for _, ptw := range ptws {
|
||||
if ptw.pt.name == currentPartitionName || !ptw.pt.isFinalDedupNeeded() {
|
||||
if ptw.pt.name == currentPartitionName {
|
||||
// Do not run final dedup for the current month.
|
||||
continue
|
||||
}
|
||||
if !ptw.pt.isFinalDedupNeeded() {
|
||||
// There is no need to run final dedup for the given partition.
|
||||
continue
|
||||
}
|
||||
// mark partition with final deduplication marker
|
||||
ptw.pt.isDedupScheduled.Store(true)
|
||||
ptwsToDedup = append(ptwsToDedup, ptw)
|
||||
|
|
Loading…
Reference in a new issue