diff --git a/src/client/src/tscServer.c b/src/client/src/tscServer.c index cea17400cdf42f67a2fdb3a89420152e817daf70..75e4c9606fb7ac4ef531975d3c56c29b07fa5039 100644 --- a/src/client/src/tscServer.c +++ b/src/client/src/tscServer.c @@ -431,8 +431,9 @@ void *tscProcessMsgFromServer(char *msg, void *ahandle, void *thandle) { } } } else { -#ifdef CLUSTER uint16_t rspCode = pMsg->content[0]; +#ifdef CLUSTER + if (rspCode == TSDB_CODE_REDIRECT) { tscTrace("%p it shall be redirected!", pSql);