fix:[TD-31899] remove taosTmrReset log
This commit is contained in:
parent
4c459155f1
commit
6c2e233ac2
|
@ -216,9 +216,7 @@ static void reportSendProcess(void* param, void* tmrId) {
|
||||||
SEpSet ep = getEpSet_s(&pInst->mgmtEp);
|
SEpSet ep = getEpSet_s(&pInst->mgmtEp);
|
||||||
generateClusterReport(pMonitor->registry, pInst->pTransporter, &ep);
|
generateClusterReport(pMonitor->registry, pInst->pTransporter, &ep);
|
||||||
bool reset = taosTmrReset(reportSendProcess, pInst->monitorParas.tsMonitorInterval * 1000, param, monitorTimer, &tmrId);
|
bool reset = taosTmrReset(reportSendProcess, pInst->monitorParas.tsMonitorInterval * 1000, param, monitorTimer, &tmrId);
|
||||||
if (!reset){
|
tscDebug("reset timer, pMonitor:%p, %d", pMonitor, reset);
|
||||||
tscError("failed to reset timer, pMonitor:%p", pMonitor);
|
|
||||||
}
|
|
||||||
taosRUnLockLatch(&monitorLock);
|
taosRUnLockLatch(&monitorLock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -989,9 +989,7 @@ OVER:
|
||||||
tDestroySMqHbReq(&req);
|
tDestroySMqHbReq(&req);
|
||||||
if (tmrId != NULL) {
|
if (tmrId != NULL) {
|
||||||
bool ret = taosTmrReset(tmqSendHbReq, tmq->heartBeatIntervalMs, param, tmqMgmt.timer, &tmq->hbLiveTimer);
|
bool ret = taosTmrReset(tmqSendHbReq, tmq->heartBeatIntervalMs, param, tmqMgmt.timer, &tmq->hbLiveTimer);
|
||||||
if (!ret){
|
tscDebug("reset timer fo tmq hb:%d", ret);
|
||||||
tscError("failed to reset timer fo tmq hb");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
int32_t ret = taosReleaseRef(tmqMgmt.rsetId, refId);
|
int32_t ret = taosReleaseRef(tmqMgmt.rsetId, refId);
|
||||||
if (ret != 0){
|
if (ret != 0){
|
||||||
|
@ -1033,9 +1031,7 @@ void tmqHandleAllDelayedTask(tmq_t* pTmq) {
|
||||||
tscDebug("consumer:0x%" PRIx64 " retrieve ep from mnode in 1s", pTmq->consumerId);
|
tscDebug("consumer:0x%" PRIx64 " retrieve ep from mnode in 1s", pTmq->consumerId);
|
||||||
bool ret = taosTmrReset(tmqAssignAskEpTask, DEFAULT_ASKEP_INTERVAL, (void*)(pTmq->refId), tmqMgmt.timer,
|
bool ret = taosTmrReset(tmqAssignAskEpTask, DEFAULT_ASKEP_INTERVAL, (void*)(pTmq->refId), tmqMgmt.timer,
|
||||||
&pTmq->epTimer);
|
&pTmq->epTimer);
|
||||||
if (!ret){
|
tscDebug("reset timer fo tmq ask ep:%d", ret);
|
||||||
tscError("failed to reset timer fo tmq ask ep");
|
|
||||||
}
|
|
||||||
} else if (*pTaskType == TMQ_DELAYED_TASK__COMMIT) {
|
} else if (*pTaskType == TMQ_DELAYED_TASK__COMMIT) {
|
||||||
tmq_commit_cb* pCallbackFn = pTmq->commitCb ? pTmq->commitCb : defaultCommitCbFn;
|
tmq_commit_cb* pCallbackFn = pTmq->commitCb ? pTmq->commitCb : defaultCommitCbFn;
|
||||||
asyncCommitAllOffsets(pTmq, pCallbackFn, pTmq->commitCbUserParam);
|
asyncCommitAllOffsets(pTmq, pCallbackFn, pTmq->commitCbUserParam);
|
||||||
|
@ -1043,9 +1039,7 @@ void tmqHandleAllDelayedTask(tmq_t* pTmq) {
|
||||||
pTmq->autoCommitInterval / 1000.0);
|
pTmq->autoCommitInterval / 1000.0);
|
||||||
bool ret = taosTmrReset(tmqAssignDelayedCommitTask, pTmq->autoCommitInterval, (void*)(pTmq->refId), tmqMgmt.timer,
|
bool ret = taosTmrReset(tmqAssignDelayedCommitTask, pTmq->autoCommitInterval, (void*)(pTmq->refId), tmqMgmt.timer,
|
||||||
&pTmq->commitTimer);
|
&pTmq->commitTimer);
|
||||||
if (!ret){
|
tscDebug("reset timer fo commit:%d", ret);
|
||||||
tscError("failed to reset timer fo commit");
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
tscError("consumer:0x%" PRIx64 " invalid task type:%d", pTmq->consumerId, *pTaskType);
|
tscError("consumer:0x%" PRIx64 " invalid task type:%d", pTmq->consumerId, *pTaskType);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
|
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue