Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
db: fix newly-introduced SINGLEDEL+DELSIZED bug
In bfb2e6a (#3081) a small refactor the handling of DELSIZED introduced a bug when a DELSIZED shadows a SINGLEDEL. When a DELSIZED and a SINGLEDEL meet in a compaction, we began accidentally emitting a SINGLEDEL rather than a DEL, weakening the tombstone. Previously the problematic code branch was only ever executed when a DELSIZED and DEL met, so iterKey.Kind() was always DEL. Fix #3087.
- Loading branch information