Skip to content

Commit 9c7c144

Browse files
davidby-influxdevanbenz
authored andcommitted
fix: reduce unnecessary purger operations and logging (#26762)
Skip purger call if no TSM files are held open during a replace operation. Reduce useless log entries. (cherry picked from commit b647892)
1 parent e51acc4 commit 9c7c144

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tsdb/engine/tsm1/file_store.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,6 +1595,10 @@ type purger struct {
15951595

15961596
func (p *purger) add(files []TSMFile) {
15971597
var fileNames []string
1598+
1599+
if len(files) == 0 {
1600+
return
1601+
}
15981602
p.mu.Lock()
15991603
for _, f := range files {
16001604
fileName := f.Path()

0 commit comments

Comments
 (0)