Skip to content

Commit

Permalink
libroach: initialize range tombstone counter
Browse files Browse the repository at this point in the history
We forgot to initialize a variable that is used to decide whether a
compaction output file should be marked to undergo another compaction.

Release note (bug fix): reduce write-amp by avoiding forcing files
through compactions unnecessarily.
  • Loading branch information
ajkr committed Oct 3, 2019
1 parent 39112ef commit 9666bc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c-deps/libroach/table_props.cc
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class DeleteRangeTblPropCollector : public rocksdb::TablePropertiesCollector {
}

private:
int ntombstones_;
int ntombstones_ = 0;
};

class DeleteRangeTblPropCollectorFactory : public rocksdb::TablePropertiesCollectorFactory {
Expand Down

0 comments on commit 9666bc5

Please sign in to comment.