[TD-4912]<hotfix>: fix coredump when drop vnode

This commit is contained in:
Hongze Cheng 2021-06-26 11:32:11 +08:00
parent 71b953e102
commit 6b265fb3b8
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;