remove unnecessary compaction condition check for key below watermark (#145)

remove unnecessary condition check
This commit is contained in:
lxc
2025-05-06 21:59:03 +08:00
committed by GitHub
parent 6fba57ac4d
commit 17b221fb4e

View File

@@ -161,7 +161,7 @@ impl LsmStorageInner {
} }
if iter.key().ts() <= watermark { if iter.key().ts() <= watermark {
if same_as_last_key && !first_key_below_watermark { if !first_key_below_watermark {
iter.next()?; iter.next()?;
continue; continue;
} }