From dc1a04e6dd0d79bfb89b958c3be9e8785e34a6c0 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Fri, 19 Jun 2020 03:05:14 +0000 Subject: [PATCH] TD-353 --- src/tsdb/src/tsdbMain.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tsdb/src/tsdbMain.c b/src/tsdb/src/tsdbMain.c index aa4df032e8..5b0a233e13 100644 --- a/src/tsdb/src/tsdbMain.c +++ b/src/tsdb/src/tsdbMain.c @@ -147,9 +147,11 @@ void tsdbCloseRepo(TSDB_REPO_T *repo, int toCommit) { if (toCommit) { tsdbAsyncCommit(pRepo); if (pRepo->commit) pthread_join(pRepo->commitThread, NULL); - } else { - // TODO } + tsdbUnRefMemTable(pRepo, pRepo->mem); + tsdbUnRefMemTable(pRepo, pRepo->imem); + pRepo->mem = NULL; + pRepo->imem = NULL; tsdbCloseFileH(pRepo); tsdbCloseBufPool(pRepo); -- GitLab