TD-353
This commit is contained in:
parent
f1ce022556
commit
dc1a04e6dd
|
@ -147,9 +147,11 @@ void tsdbCloseRepo(TSDB_REPO_T *repo, int toCommit) {
|
||||||
if (toCommit) {
|
if (toCommit) {
|
||||||
tsdbAsyncCommit(pRepo);
|
tsdbAsyncCommit(pRepo);
|
||||||
if (pRepo->commit) pthread_join(pRepo->commitThread, NULL);
|
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);
|
tsdbCloseFileH(pRepo);
|
||||||
tsdbCloseBufPool(pRepo);
|
tsdbCloseBufPool(pRepo);
|
||||||
|
|
Loading…
Reference in New Issue