[btree] Implement btree::destroy() to delete the entire tree
Also decrease the reference count of the mapped values. (e.g., bitmap blocks of btree_index_store)
This commit is contained in:
@@ -124,6 +124,9 @@ namespace persistent_data {
|
||||
template <typename RefCounter>
|
||||
void inc_children(RefCounter &rc);
|
||||
|
||||
template <typename RefCounter>
|
||||
void dec_children(RefCounter &rc);
|
||||
|
||||
disk_node *raw() {
|
||||
return raw_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user