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 justification: reduce write-amp by avoiding forcing files
through compactions unnecessarily.

Release note: None
  • Loading branch information
ajkr committed Oct 1, 2019
1 parent b7b4b10 commit 7512ee3
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 @@ -130,7 +130,7 @@ class DeleteRangeTblPropCollector : public rocksdb::TablePropertiesCollector {
}

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

class DeleteRangeTblPropCollectorFactory : public rocksdb::TablePropertiesCollectorFactory {
Expand Down

0 comments on commit 7512ee3

Please sign in to comment.