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
4001ca36b8
commit
131f357098
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