fix invalid retr3

This commit is contained in:
yihaoDeng 2024-09-19 19:30:26 +08:00
parent a32c0f47ce
commit 20b505a482
1 changed files with 2 additions and 4 deletions

View File

@ -24,10 +24,8 @@ static inline void dmBuildMnodeRedirectRsp(SDnode *pDnode, SRpcMsg *pMsg) {
SEpSet epSet = {0};
dmGetMnodeEpSetForRedirect(&pDnode->data, pMsg, &epSet);
if (epSet.numOfEps == 0) {
pMsg->code = TSDB_CODE_MNODE_NOT_FOUND;
return;
} else if (epSet.numOfEps == 1) {
if (epSet.numOfEps <= 1) {
pMsg->pCont = NULL;
pMsg->code = TSDB_CODE_MNODE_NOT_FOUND;
return;
}