change err code

This commit is contained in:
yihaoDeng 2022-08-09 15:22:46 +08:00
parent 81a64d7f1a
commit bec4b2ff19
1 changed files with 2 additions and 1 deletions

View File

@ -1265,7 +1265,8 @@ int cliAppCb(SCliConn* pConn, STransMsg* pResp, SCliMsg* pMsg) {
cliSchedMsgToNextNode(pMsg, pThrd); cliSchedMsgToNextNode(pMsg, pThrd);
return -1; return -1;
} else { } else {
pResp->code = TSDB_CODE_APP_NOT_READY; // change error code for taos client driver if retryCnt exceeds limit
if (0 == strncmp(pTransInst->label, "TSC", strlen("TSC"))) pResp->code = TSDB_CODE_APP_NOT_READY;
} }
} }
} }