[btree_damage_visitor] Check the value_size agrees.

Patch from Ming-Hung Tsai
This commit is contained in:
Joe Thornber
2015-05-26 12:06:34 +01:00
parent 270c0f7041
commit 85d1701ba1
3 changed files with 34 additions and 7 deletions

View File

@ -161,6 +161,9 @@ namespace persistent_data {
return raw_;
}
bool value_sizes_match() const;
std::string value_mismatch_string() const;
private:
static unsigned calc_max_entries(void);
void check_fits_within_block() const;