Skip to content

Commit e883e8b

Browse files
fix: reduce unnecessary purger operations and logging (#26762) (#26863)
Co-authored-by: davidby-influx <72418212+davidby-influx@users.noreply.github.com>
1 parent 70543be commit e883e8b

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)