[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:
Ming-Hung Tsai
2020-06-02 11:47:38 +08:00
parent 4e1ec9326b
commit f803c44e93
2 changed files with 113 additions and 2 deletions

View File

@@ -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_;
}