提交 d2823d60 编写于 作者: dengyihao's avatar dengyihao

modify code style

上级 5f553934
...@@ -226,10 +226,7 @@ int tscSendMsgToServer(SSqlObj *pSql) { ...@@ -226,10 +226,7 @@ int tscSendMsgToServer(SSqlObj *pSql) {
// set the mgmt ip list // set the mgmt ip list
if (pSql->cmd.command >= TSDB_SQL_MGMT) { if (pSql->cmd.command >= TSDB_SQL_MGMT) {
SRpcIpSet dump; tscDumpMgmtIpSet(&pSql->ipList);
tscDumpMgmtIpSet(&dump);
// no need to update pSql->ipList
tscIpSetCopy(&pSql->ipList, &dump);
} }
memcpy(pMsg, pSql->cmd.payload, pSql->cmd.payloadLen); memcpy(pMsg, pSql->cmd.payload, pSql->cmd.payloadLen);
...@@ -471,7 +468,7 @@ int tscProcessSql(SSqlObj *pSql) { ...@@ -471,7 +468,7 @@ int tscProcessSql(SSqlObj *pSql) {
return pSql->res.code; return pSql->res.code;
} }
} else if (pCmd->command < TSDB_SQL_LOCAL) { } else if (pCmd->command < TSDB_SQL_LOCAL) {
tscDumpMgmtIpSet(&pSql->ipList); //tscDumpMgmtIpSet(&pSql->ipList);
} else { } else {
return (*tscProcessMsgRsp[pCmd->command])(pSql); return (*tscProcessMsgRsp[pCmd->command])(pSql);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部