提交 c1a774c6 编写于 作者: D dapan1121

enh/defaultEpSet

上级 f75bcdf4
......@@ -58,7 +58,10 @@ int32_t processConnectRsp(void* param, const SDataBuf* pMsg, int32_t code) {
return code;
}
if (connectRsp.dnodeNum > 1 && !isEpsetEqual(&pTscObj->pAppInfo->mgmtEp.epSet, &connectRsp.epSet)) {
if (connectRsp.dnodeNum == 1) {
SEpSet epset = getEpSet_s(&pTscObj->pAppInfo->mgmtEp);
rpcSetDefaultEpSet(pTscObj->pAppInfo->pTransporter, &epset);
} else if (connectRsp.dnodeNum > 1 && !isEpsetEqual(&pTscObj->pAppInfo->mgmtEp.epSet, &connectRsp.epSet)) {
updateEpSet_s(&pTscObj->pAppInfo->mgmtEp, &connectRsp.epSet);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册