node_ref now checks the value_type sizes match, and the data fits within a single block.
This commit is contained in:
@ -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
|
||||
};
|
||||
|
||||
//------------------------------------------------
|
||||
|
Reference in New Issue
Block a user