]> 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 02:07:16 +0000 (19:07 -0700)
commite96d06c816bf0150f2eb6448a558254a5b1aece6
treee8d2ada4727d1b313f1859a1b744ad320b230195
parentb86f89f25b281c6089be07730ef81231528269ea
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
HISTORY.md
db/compaction.cc
db/db_compaction_test.cc