From 2d9ea33753bca77eea224703c23ad0f3ada93265 Mon Sep 17 00:00:00 2001 From: Nobuhiro Ban Date: Fri, 4 Oct 2024 16:17:56 +0900 Subject: [PATCH] use nokey mode for inner --- include/interface_destroy.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/interface_destroy.h b/include/interface_destroy.h index b61bb31..2e8c9cd 100644 --- a/include/interface_destroy.h +++ b/include/interface_destroy.h @@ -18,16 +18,15 @@ namespace yakushima { [[maybe_unused]] static status destroy() { if (storage::get_storages()->empty()) { return status::OK_ROOT_IS_NULL; } - std::vector> - tuple_list; - scan_root( + std::vector tuple_list; + scan_root( storage::get_storages(), "", scan_endpoint::INF, "", scan_endpoint::INF, tuple_list, nullptr, 0); for (auto&& elem : tuple_list) { - base_node* root = std::get<1>(elem)->load_root_ptr(); + base_node* root = elem->load_root_ptr(); if (root == nullptr) { continue; } root->destroy(); delete root; // NOLINT - std::get<1>(elem)->store_root_ptr(nullptr); + elem->store_root_ptr(nullptr); } base_node* tables_root = storage::get_storages()->load_root_ptr();