[PATCH 5/8] memtx: destroy slab arena on engine shutdown
Vladimir Davydov
vdavydov.dev at gmail.com
Tue May 22 14:46:13 MSK 2018
Since it is created when the memtx engine is initialized, we should
destroy it on engine shutdown.
---
src/box/memtx_engine.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/box/memtx_engine.c b/src/box/memtx_engine.c
index b1a9b157..51a47eff 100644
--- a/src/box/memtx_engine.c
+++ b/src/box/memtx_engine.c
@@ -138,6 +138,11 @@ memtx_engine_shutdown(struct engine *engine)
mempool_destroy(&memtx->hash_iterator_pool);
if (mempool_is_initialized(&memtx->bitset_iterator_pool))
mempool_destroy(&memtx->bitset_iterator_pool);
+ mempool_destroy(&memtx->index_extent_pool);
+ slab_cache_destroy(&memtx->index_slab_cache);
+ small_alloc_destroy(&memtx->alloc);
+ slab_cache_destroy(&memtx->slab_cache);
+ tuple_arena_destroy(&memtx->arena);
xdir_destroy(&memtx->snap_dir);
free(memtx);
}
--
2.11.0
More information about the Tarantool-patches
mailing list