Skip to content

Commit

Permalink
feat: Filter splits that do not require compaction
Browse files Browse the repository at this point in the history
  • Loading branch information
zhourui999 committed Apr 21, 2024
1 parent 367df6e commit 349d421
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ protected List<MultiTableCommittable> prepareCommit(boolean waitCompaction, long
CommitMessageImpl commitMessage =
(CommitMessageImpl)
committable.wrappedCommittable();
return !commitMessage.compactIncrement().isEmpty();
return !commitMessage.newFilesIncrement().isEmpty()
&& !commitMessage.compactIncrement().isEmpty();
}
return true;
})
Expand Down

0 comments on commit 349d421

Please sign in to comment.