fix:[TD-31899] remove void(func)
This commit is contained in:
parent
b2878d1851
commit
118eeec480
|
@ -767,10 +767,7 @@ static void* monitorThreadFunc(void* param) {
|
||||||
}
|
}
|
||||||
|
|
||||||
MonitorSlowLogData* slowLogData = NULL;
|
MonitorSlowLogData* slowLogData = NULL;
|
||||||
if (taosReadQitem(monitorQueue, (void**)&slowLogData) == 0){
|
if (taosReadQitem(monitorQueue, (void**)&slowLogData) != 0) {
|
||||||
tscDebug("monitorThreadFunc get slow log data from queue null");
|
|
||||||
}
|
|
||||||
if (slowLogData != NULL) {
|
|
||||||
if (slowLogData->type == SLOW_LOG_READ_BEGINNIG && quitCnt == 0) {
|
if (slowLogData->type == SLOW_LOG_READ_BEGINNIG && quitCnt == 0) {
|
||||||
if (slowLogData->pFile != NULL) {
|
if (slowLogData->pFile != NULL) {
|
||||||
monitorSendSlowLogAtBeginning(slowLogData->clusterId, &(slowLogData->fileName), slowLogData->pFile,
|
monitorSendSlowLogAtBeginning(slowLogData->clusterId, &(slowLogData->fileName), slowLogData->pFile,
|
||||||
|
|
|
@ -978,7 +978,7 @@ void tmqSendHbReq(void* param, void* tmrId) {
|
||||||
OVER:
|
OVER:
|
||||||
tDestroySMqHbReq(&req);
|
tDestroySMqHbReq(&req);
|
||||||
if (tmrId != NULL) {
|
if (tmrId != NULL) {
|
||||||
int32_t ret = taosTmrReset(tmqSendHbReq, tmq->heartBeatIntervalMs, param, tmqMgmt.timer, &tmq->hbLiveTimer);
|
bool ret = taosTmrReset(tmqSendHbReq, tmq->heartBeatIntervalMs, param, tmqMgmt.timer, &tmq->hbLiveTimer);
|
||||||
if (!ret){
|
if (!ret){
|
||||||
tscError("failed to reset timer fo tmq hb");
|
tscError("failed to reset timer fo tmq hb");
|
||||||
}
|
}
|
||||||
|
@ -1021,9 +1021,9 @@ void tmqHandleAllDelayedTask(tmq_t* pTmq) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
tscDebug("consumer:0x%" PRIx64 " retrieve ep from mnode in 1s", pTmq->consumerId);
|
tscDebug("consumer:0x%" PRIx64 " retrieve ep from mnode in 1s", pTmq->consumerId);
|
||||||
code = 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 (!code){
|
if (!ret){
|
||||||
tscError("failed to reset timer fo tmq ask ep");
|
tscError("failed to reset timer fo tmq ask ep");
|
||||||
}
|
}
|
||||||
} else if (*pTaskType == TMQ_DELAYED_TASK__COMMIT) {
|
} else if (*pTaskType == TMQ_DELAYED_TASK__COMMIT) {
|
||||||
|
@ -1031,9 +1031,9 @@ void tmqHandleAllDelayedTask(tmq_t* pTmq) {
|
||||||
asyncCommitAllOffsets(pTmq, pCallbackFn, pTmq->commitCbUserParam);
|
asyncCommitAllOffsets(pTmq, pCallbackFn, pTmq->commitCbUserParam);
|
||||||
tscDebug("consumer:0x%" PRIx64 " next commit to vnode(s) in %.2fs", pTmq->consumerId,
|
tscDebug("consumer:0x%" PRIx64 " next commit to vnode(s) in %.2fs", pTmq->consumerId,
|
||||||
pTmq->autoCommitInterval / 1000.0);
|
pTmq->autoCommitInterval / 1000.0);
|
||||||
code = 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 (!code){
|
if (!ret){
|
||||||
tscError("failed to reset timer fo commit");
|
tscError("failed to reset timer fo commit");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -344,8 +344,7 @@ int32_t tqProcessPollPush(STQ* pTq, SRpcMsg* pMsg) {
|
||||||
.pCont = pHandle->msg->pCont,
|
.pCont = pHandle->msg->pCont,
|
||||||
.contLen = pHandle->msg->contLen,
|
.contLen = pHandle->msg->contLen,
|
||||||
.info = pHandle->msg->info};
|
.info = pHandle->msg->info};
|
||||||
int32_t ret = tmsgPutToQueue(&pTq->pVnode->msgCb, QUERY_QUEUE, &msg);
|
if (tmsgPutToQueue(&pTq->pVnode->msgCb, QUERY_QUEUE, &msg) != 0){
|
||||||
if (ret != 0){
|
|
||||||
tqError("vgId:%d tmsgPutToQueue failed, consumer:0x%" PRIx64, vgId, pHandle->consumerId);
|
tqError("vgId:%d tmsgPutToQueue failed, consumer:0x%" PRIx64, vgId, pHandle->consumerId);
|
||||||
}
|
}
|
||||||
taosMemoryFree(pHandle->msg);
|
taosMemoryFree(pHandle->msg);
|
||||||
|
|
|
@ -112,8 +112,8 @@ int32_t tqScanWalInFuture(STQ* pTq, int32_t numOfTasks, int32_t idleDuration) {
|
||||||
if (pMeta->scanInfo.scanTimer == NULL) {
|
if (pMeta->scanInfo.scanTimer == NULL) {
|
||||||
pMeta->scanInfo.scanTimer = taosTmrStart(doStartScanWal, idleDuration, pParam, pTimer);
|
pMeta->scanInfo.scanTimer = taosTmrStart(doStartScanWal, idleDuration, pParam, pTimer);
|
||||||
} else {
|
} else {
|
||||||
code = taosTmrReset(doStartScanWal, idleDuration, pParam, pTimer, &pMeta->scanInfo.scanTimer);
|
bool ret = taosTmrReset(doStartScanWal, idleDuration, pParam, pTimer, &pMeta->scanInfo.scanTimer);
|
||||||
if (code) {
|
if (!ret) {
|
||||||
tqError("vgId:%d failed to start scan wal in:%dms", vgId, idleDuration);
|
tqError("vgId:%d failed to start scan wal in:%dms", vgId, idleDuration);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue