Skip to content

Commit

Permalink
filter for empty memtables
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Dec 19, 2024
1 parent 92e4a4c commit e07497b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ impl Monitor {
// TODO: this may not scale well for many partitions
let lowest_persisted_partition = partitions
.values()
.filter(|x| x.tree.active_memtable_size() > 0)
.min_by(|a, b| {
a.tree
.get_highest_persisted_seqno()
Expand Down

0 comments on commit e07497b

Please sign in to comment.