mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-21 15:45:01 +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)
|
currentPartitionName := timestampToPartitionName(timestamp)
|
||||||
var ptwsToDedup []*partitionWrapper
|
var ptwsToDedup []*partitionWrapper
|
||||||
for _, ptw := range ptws {
|
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.
|
// Do not run final dedup for the current month.
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if !ptw.pt.isFinalDedupNeeded() {
|
||||||
|
// There is no need to run final dedup for the given partition.
|
||||||
|
continue
|
||||||
|
}
|
||||||
// mark partition with final deduplication marker
|
// mark partition with final deduplication marker
|
||||||
ptw.pt.isDedupScheduled.Store(true)
|
ptw.pt.isDedupScheduled.Store(true)
|
||||||
ptwsToDedup = append(ptwsToDedup, ptw)
|
ptwsToDedup = append(ptwsToDedup, ptw)
|
||||||
|
|
Loading…
Reference in a new issue