[TD-4912]<hotfix>: fix coredump when drop vnode
This commit is contained in:
parent
71b953e102
commit
6b265fb3b8
|
@ -126,6 +126,8 @@ int tsdbCloseRepo(STsdbRepo *repo, int toCommit) {
|
||||||
tsdbSyncCommit(repo);
|
tsdbSyncCommit(repo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tsem_wait(&(pRepo->readyToCommit));
|
||||||
|
|
||||||
tsdbUnRefMemTable(pRepo, pRepo->mem);
|
tsdbUnRefMemTable(pRepo, pRepo->mem);
|
||||||
tsdbUnRefMemTable(pRepo, pRepo->imem);
|
tsdbUnRefMemTable(pRepo, pRepo->imem);
|
||||||
pRepo->mem = NULL;
|
pRepo->mem = NULL;
|
||||||
|
|
Loading…
Reference in New Issue