opt return code
This commit is contained in:
parent
3f0e99e608
commit
88253b627e
|
@ -2934,9 +2934,9 @@ void cliMayResetRespCode(SCliReq* pReq, STransMsg* pResp) {
|
||||||
// check whole vnodes is offline on this vgroup
|
// check whole vnodes is offline on this vgroup
|
||||||
if (((pCtx->epSet != NULL) && pCtx->epsetRetryCnt >= pCtx->epSet->numOfEps) || pCtx->retryStep > 0) {
|
if (((pCtx->epSet != NULL) && pCtx->epsetRetryCnt >= pCtx->epSet->numOfEps) || pCtx->retryStep > 0) {
|
||||||
if (pResp->code == TSDB_CODE_RPC_NETWORK_UNAVAIL) {
|
if (pResp->code == TSDB_CODE_RPC_NETWORK_UNAVAIL) {
|
||||||
pResp->code = TSDB_CODE_RPC_SOMENODE_NOT_CONNECTED;
|
pResp->code = TSDB_CODE_RPC_NETWORK_UNAVAIL;
|
||||||
} else if (pResp->code == TSDB_CODE_RPC_BROKEN_LINK) {
|
} else if (pResp->code == TSDB_CODE_RPC_BROKEN_LINK) {
|
||||||
pResp->code = TSDB_CODE_RPC_SOMENODE_BROKEN_LINK;
|
pResp->code = TSDB_CODE_RPC_NETWORK_UNAVAIL; // TSDB_CODE_RPC_SOMENODE_BROKEN_LINK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue