fix(stream): adjust init tmr position.
This commit is contained in:
parent
e378b5cb8a
commit
00edb8e612
|
@ -95,6 +95,12 @@ static void doStartScanWal(void* param, void* tmrId) {
|
||||||
}
|
}
|
||||||
|
|
||||||
vgId = pMeta->vgId;
|
vgId = pMeta->vgId;
|
||||||
|
code = streamTimerGetInstance(&pTimer);
|
||||||
|
if (code) {
|
||||||
|
tqFatal("vgId:%d failed to get tmr ctrl during sched scan wal, not scan wal, code:%s", vgId, tstrerror(code));
|
||||||
|
taosMemoryFree(pParam);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (pMeta->closeFlag) {
|
if (pMeta->closeFlag) {
|
||||||
code = taosReleaseRef(streamMetaRefPool, pParam->metaId);
|
code = taosReleaseRef(streamMetaRefPool, pParam->metaId);
|
||||||
|
@ -129,13 +135,6 @@ static void doStartScanWal(void* param, void* tmrId) {
|
||||||
goto _end;
|
goto _end;
|
||||||
}
|
}
|
||||||
|
|
||||||
code = streamTimerGetInstance(&pTimer);
|
|
||||||
if (code) {
|
|
||||||
tqFatal("vgId:%d failed to get tmr ctrl during sched scan wal, not scan wal, code:%s", vgId, tstrerror(code));
|
|
||||||
taosMemoryFree(pParam);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!waitEnoughDuration(pMeta)) {
|
if (!waitEnoughDuration(pMeta)) {
|
||||||
streamTmrStart(doStartScanWal, SCAN_WAL_IDLE_DURATION, pParam, pTimer, &pMeta->scanInfo.scanTimer, vgId,
|
streamTmrStart(doStartScanWal, SCAN_WAL_IDLE_DURATION, pParam, pTimer, &pMeta->scanInfo.scanTimer, vgId,
|
||||||
"scan-wal");
|
"scan-wal");
|
||||||
|
|
Loading…
Reference in New Issue