From 0eeae78538b025ae8d61400f2c2f972eef17f068 Mon Sep 17 00:00:00 2001 From: slguan Date: Wed, 20 Nov 2019 11:44:09 +0800 Subject: [PATCH] [TBASE-1128] --- src/client/src/tscSql.c | 6 +----- src/system/detail/src/mgmtShell.c | 5 ++++- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/client/src/tscSql.c b/src/client/src/tscSql.c index 6ec8f425ca..6131e96eab 100644 --- a/src/client/src/tscSql.c +++ b/src/client/src/tscSql.c @@ -63,12 +63,8 @@ TAOS *taos_connect_imp(const char *ip, const char *user, const char *pass, const #ifdef CLUSTER if (ip && ip[0]) { - tscMgmtIpList.numOfIps = 2; strcpy(tscMgmtIpList.ipstr[0], ip); tscMgmtIpList.ip[0] = inet_addr(ip); - - strcpy(tscMgmtIpList.ipstr[1], ip); - tscMgmtIpList.ip[1] = inet_addr(ip); } #else if (ip && ip[0]) { @@ -156,7 +152,7 @@ TAOS *taos_connect_imp(const char *ip, const char *user, const char *pass, const TAOS *taos_connect(const char *ip, const char *user, const char *pass, const char *db, int port) { if (ip == NULL || (ip != NULL && (strcmp("127.0.0.1", ip) == 0 || strcasecmp("localhost", ip) == 0))) { #ifdef CLUSTER - ip = tsPrivateIp; + ip = tsMasterIp; #else ip = tsServerIpStr; #endif diff --git a/src/system/detail/src/mgmtShell.c b/src/system/detail/src/mgmtShell.c index e58938bdad..bd8f798e38 100644 --- a/src/system/detail/src/mgmtShell.c +++ b/src/system/detail/src/mgmtShell.c @@ -973,7 +973,10 @@ int mgmtProcessCreateTableMsg(char *pMsg, int msgLen, SConnObj *pConn) { } } - if (code != 0) { + if (code == 1) { + //mTrace("table:%s, wait vgroup create finish", pCreate->meterId, code); + } + else if (code != 0) { mError("table:%s, failed to create table, code:%d", pCreate->meterId, code); } else { mTrace("table:%s, table is created by %s", pCreate->meterId, pConn->pUser->user); -- GitLab