提交 e2043329 编写于 作者: A Alex Duan

fix(query): if send data failed then retry next ip again

上级 de5a5152
......@@ -1437,7 +1437,16 @@ static TBOOL rpcSendReqToServer(SRpcInfo *pRpc, SRpcReqContext *pContext) {
taosTmrReset(rpcProcessRetryTimer, tsRpcTimer, pConn, pRpc->tmrCtrl, &pConn->pTimer);
rpcUnlockConn(pConn);
return ret ? BOOL_TRUE : BOOL_FALSE;
if(ret == BOOL_FALSE) {
// try next ip again
pContext->code = terrno;
// in rpcProcessConnError if numOfTry over limit, could call rpcNotifyClient to stop query
taosTmrStart(rpcProcessConnError, 1, pContext, pRpc->tmrCtrl);
return BOOL_ASYNC;
}
return BOOL_TRUE;
}
static bool rpcSendMsgToPeer(SRpcConn *pConn, void *msg, int msgLen) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册