mirror of https://github.com/facebook/rocksdb.git
Fix double-counted deletion stat
Summary: Both the single deletion and the value are included in compaction outputs, so no need to update the stat for the value's deletion yet, otherwise it'd be double-counted. Closes https://github.com/facebook/rocksdb/pull/1574 Differential Revision: D4241181 Pulled By: ajkr fbshipit-source-id: c9aaa15
This commit is contained in:
parent
7ffb10fc1a
commit
01eabf7375
|
@ -310,7 +310,6 @@ void CompactionIterator::NextFromInput() {
|
|||
// to know that a write happened in this snapshot (Rule 2 above).
|
||||
// Clear the value and output the SingleDelete. (The value will be
|
||||
// outputted on the next iteration.)
|
||||
++iter_stats_.num_record_drop_hidden;
|
||||
|
||||
// Setting valid_ to true will output the current SingleDelete
|
||||
valid_ = true;
|
||||
|
|
Loading…
Reference in New Issue