fix commit coredump data lost bug

This commit is contained in:
Hongze Cheng 2020-05-29 03:15:59 +00:00
parent 2831779eb3
commit 61031d1d18
1 changed files with 4 additions and 4 deletions

View File

@ -393,14 +393,14 @@ static void vnodeCleanUp(SVnodeObj *pVnode) {
pVnode->sync = NULL;
}
if (pVnode->wal)
walClose(pVnode->wal);
pVnode->wal = NULL;
if (pVnode->tsdb)
tsdbCloseRepo(pVnode->tsdb, 1);
pVnode->tsdb = NULL;
if (pVnode->wal)
walClose(pVnode->wal);
pVnode->wal = NULL;
if (pVnode->cq)
cqClose(pVnode->cq);
pVnode->cq = NULL;