This commit is contained in:
Hongze Cheng 2020-06-18 09:06:42 +00:00
parent 76b7e3c815
commit 40b48c8980
1 changed files with 2 additions and 0 deletions

View File

@ -148,6 +148,8 @@ 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
} }
tsdbCloseFileH(pRepo); tsdbCloseFileH(pRepo);