]> 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:35:24 +0000 (14:35 -0700)
commit163931f5089a61fea1a470f4ab47040881f16b0c
treec745550477a801daaeb45bed0dc4085f69075c71
parent20d49e4b9bace859fcdb5c87b37db2cdb2c6013a
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