refactor: do some internal refactor.
This commit is contained in:
parent
59270dfd0d
commit
761ae2ab4b
|
@ -938,28 +938,6 @@ void checkpointTriggerMonitorFn(void* param, void* tmrId) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((pTmrInfo->launchChkptId != pActiveInfo->activeId) || (pActiveInfo->activeId == 0)) {
|
|
||||||
streamMutexUnlock(&pActiveInfo->lock);
|
|
||||||
int32_t ref = streamCleanBeforeQuitTmr(pTmrInfo, pTask);
|
|
||||||
stWarn("s-task:%s vgId:%d checkpoint-trigger retrieve by previous checkpoint procedure, checkpointId:%" PRId64
|
|
||||||
", quit, ref:%d",
|
|
||||||
id, vgId, pTmrInfo->launchChkptId, ref);
|
|
||||||
|
|
||||||
streamMetaReleaseTask(pTask->pMeta, pTask);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// active checkpoint info is cleared for now
|
|
||||||
if ((pActiveInfo->activeId == 0) || (pActiveInfo->transId == 0) || (pTask->chkInfo.startTs == 0)) {
|
|
||||||
streamMutexUnlock(&pActiveInfo->lock);
|
|
||||||
int32_t ref = streamCleanBeforeQuitTmr(pTmrInfo, pTask);
|
|
||||||
stWarn("s-task:%s vgId:%d active checkpoint may be cleared, quit from retrieve checkpoint-trigger send tmr, ref:%d",
|
|
||||||
id, vgId, ref);
|
|
||||||
|
|
||||||
streamMetaReleaseTask(pTask->pMeta, pTask);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (int32_t i = 0; i < taosArrayGetSize(pList); ++i) {
|
for (int32_t i = 0; i < taosArrayGetSize(pList); ++i) {
|
||||||
SStreamUpstreamEpInfo* pInfo = taosArrayGetP(pList, i);
|
SStreamUpstreamEpInfo* pInfo = taosArrayGetP(pList, i);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue