From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Vladimir Davydov Subject: [PATCH 5/8] memtx: destroy slab arena on engine shutdown Date: Tue, 22 May 2018 14:46:13 +0300 Message-Id: <084ce3c6f657e3fe0b64ca8d20ecac9632304ba0.1526987033.git.vdavydov.dev@gmail.com> In-Reply-To: References: In-Reply-To: References: To: kostja@tarantool.org Cc: tarantool-patches@freelists.org List-ID: 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