add flag in syncEnv, to deal with expired timer 2
This commit is contained in:
parent
c5602fbaba
commit
16d60bf313
|
@ -103,9 +103,8 @@ static SSyncEnv *doSyncEnvStart() {
|
|||
|
||||
static int32_t doSyncEnvStop(SSyncEnv *pSyncEnv) {
|
||||
assert(pSyncEnv == gSyncEnv);
|
||||
atomic_store_8(&(pSyncEnv->isStart), 0);
|
||||
|
||||
if (pSyncEnv != NULL) {
|
||||
atomic_store_8(&(pSyncEnv->isStart), 0);
|
||||
taosTmrCleanUp(pSyncEnv->pTimerManager);
|
||||
taosMemoryFree(pSyncEnv);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue