mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/mergeset: rename misleading mergeSmallParts to mergeExistingParts
This commit is contained in:
parent
ebbef20535
commit
bf8505353a
1 changed files with 3 additions and 3 deletions
|
@ -477,7 +477,7 @@ func (tb *Table) mergeRawItemsBlocks(blocksToMerge []*inmemoryBlock) {
|
|||
}
|
||||
|
||||
// The added part exceeds maxParts count. Assist with merging other parts.
|
||||
err := tb.mergeSmallParts(false)
|
||||
err := tb.mergeExistingParts(false)
|
||||
if err == nil {
|
||||
atomic.AddUint64(&tb.assistedMerges, 1)
|
||||
continue
|
||||
|
@ -569,7 +569,7 @@ func (tb *Table) startPartMergers() {
|
|||
}
|
||||
}
|
||||
|
||||
func (tb *Table) mergeSmallParts(isFinal bool) error {
|
||||
func (tb *Table) mergeExistingParts(isFinal bool) error {
|
||||
maxItems := tb.maxOutPartItems()
|
||||
if maxItems > maxItemsPerPart {
|
||||
maxItems = maxItemsPerPart
|
||||
|
@ -593,7 +593,7 @@ func (tb *Table) partMerger() error {
|
|||
isFinal := false
|
||||
t := time.NewTimer(sleepTime)
|
||||
for {
|
||||
err := tb.mergeSmallParts(isFinal)
|
||||
err := tb.mergeExistingParts(isFinal)
|
||||
if err == nil {
|
||||
// Try merging additional parts.
|
||||
sleepTime = minMergeSleepTime
|
||||
|
|
Loading…
Reference in a new issue