ArrayCache: development [#CLICKHOUSE-2].

This commit is contained in:
Alexey Milovidov 2017-04-09 09:44:45 +03:00
parent 5ededd6b51
commit 1005236a09

View File

@ -446,8 +446,10 @@ public:
{
std::lock_guard<std::mutex> cache_lock(mutex);
for (auto & elem : adjacency_list)
elem.destroy();
key_map.clear();
lru_list.clear();
size_multimap.clear();
adjacency_list.clear_and_dispose([](RegionMetadata * elem) { elem->destroy(); });
}