Merge pull request #6637 from taosdata/hotfix/TD-4912

hotfix/TD-4912
This commit is contained in:
Hongze Cheng 2021-06-28 10:00:08 +08:00 committed by GitHub
commit ad4e7e9fbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -126,6 +126,8 @@ int tsdbCloseRepo(STsdbRepo *repo, int toCommit) {
tsdbSyncCommit(repo);
}
tsem_wait(&(pRepo->readyToCommit));
tsdbUnRefMemTable(pRepo, pRepo->mem);
tsdbUnRefMemTable(pRepo, pRepo->imem);
pRepo->mem = NULL;