This commit is contained in:
Hongze Cheng 2020-06-19 03:05:14 +00:00
parent f1ce022556
commit dc1a04e6dd
1 changed files with 4 additions and 2 deletions

View File

@ -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);