modify code style

This commit is contained in:
yihaoDeng 2020-07-17 22:17:23 +00:00
parent 5f55393464
commit d2823d60e2
1 changed files with 2 additions and 5 deletions

View File

@ -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) {
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);
} }