Merge branch 'feature/tq' into 3.0

This commit is contained in:
Liu Jicong 2021-12-14 10:03:09 +08:00
commit e70989dd82
1 changed files with 4 additions and 1 deletions

View File

@ -68,9 +68,12 @@ int32_t walInit() {
}
void walCleanUp() {
int old = atomic_val_compare_exchange_8(&tsWal.inited, 1, 0);
if(old == 0) {
return;
}
walStopThread();
taosCloseRef(tsWal.refSetId);
atomic_store_8(&tsWal.inited, 0);
wInfo("wal module is cleaned up");
}