]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
fix deletion dropping in intra-L0
authorAndrew Kryczka <ajkr@users.noreply.github.com>
Sat, 12 Aug 2017 01:01:28 +0000 (18:01 -0700)
committerAndrew Kryczka <andrewkr@fb.com>
Sat, 12 Aug 2017 21:42:11 +0000 (14:42 -0700)
commitfebc8ac904fd5f683db2559c1f6c0dfe4f8b8863
tree2ff147d4c8fb9a69fee2d810c56e54c0949f9d85
parent2e98ac018f8e1d886c75ecc2268e8a52f685bf39
fix deletion dropping in intra-L0

Summary:
`KeyNotExistsBeyondOutputLevel` didn't consider L0 files' key-ranges. So if a key only was covered by older L0 files' key-ranges, we would incorrectly drop deletions of that key. This PR just skips the deletion-dropping optimization when output level is L0.
Closes https://github.com/facebook/rocksdb/pull/2726

Differential Revision: D5617286

Pulled By: ajkr

fbshipit-source-id: 4bff1396b06d49a828ba4542f249191052915bce
db/compaction.cc
db/db_compaction_test.cc