Allow counting_visitor to work with damaged btrees

This commit is contained in:
Ming-Hung Tsai
2016-02-27 15:22:00 +08:00
parent ad03114bf7
commit b22495997a
2 changed files with 23 additions and 10 deletions

View File

@ -158,8 +158,9 @@ namespace persistent_data {
typedef boost::optional<run64> maybe_run64;
btree_damage_visitor(ValueVisitor &value_visitor,
DamageVisitor &damage_visitor)
: avoid_repeated_visits_(true),
DamageVisitor &damage_visitor,
bool avoid_repeated_visits = true)
: avoid_repeated_visits_(avoid_repeated_visits),
value_visitor_(value_visitor),
damage_visitor_(damage_visitor) {
}