node_ref now checks the value_type sizes match, and the data fits within a single block.

This commit is contained in:
Joe Thornber
2014-06-06 15:05:41 +01:00
parent cf5d2e3225
commit 256cd16ab3
2 changed files with 35 additions and 1 deletions

View File

@ -163,12 +163,15 @@ namespace persistent_data {
private:
static unsigned calc_max_entries(void);
void check_fits_within_block() const;
void *key_ptr(unsigned i) const;
void *value_ptr(unsigned i) const;
block_address location_;
disk_node *raw_;
mutable bool checked_; // flag indicating we've checked the data fits in the block
};
//------------------------------------------------