cleanup wal level 0 before ref removing
This commit is contained in:
parent
d47fe255ae
commit
930c5d2adf
|
@ -232,13 +232,13 @@ void walClose(SWal *pWal) {
|
|||
pWal->pRefHash = NULL;
|
||||
taosThreadMutexUnlock(&pWal->mutex);
|
||||
|
||||
taosRemoveRef(tsWal.refSetId, pWal->refId);
|
||||
|
||||
if (pWal->cfg.level == TAOS_WAL_SKIP) {
|
||||
wInfo("vgId:%d, remove all wals, path:%s", pWal->cfg.vgId, pWal->path);
|
||||
taosRemoveDir(pWal->path);
|
||||
taosMkDir(pWal->path);
|
||||
}
|
||||
|
||||
taosRemoveRef(tsWal.refSetId, pWal->refId);
|
||||
}
|
||||
|
||||
static void walFreeObj(void *wal) {
|
||||
|
|
Loading…
Reference in New Issue