Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
41244: libroach: initialize range tombstone counter r=ajkr a=ajkr

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

Co-authored-by: Andrew Kryczka <andrew.kryczka2@gmail.com>
  • Loading branch information
craig[bot] and ajkr committed Oct 1, 2019
2 parents fac25b8 + 7512ee3 commit e1748d0
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 e1748d0

Please sign in to comment.