mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 12:31:07 +01:00
lib/storage/table.go: reduce the difference with enterprise branch
This commit is contained in:
parent
4001ca36b8
commit
131f357098
@ -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 New Issue
Block a user