fix: incorrect error code for repeated dnode creation

This commit is contained in:
Shengliang Guan 2022-12-16 12:28:22 +08:00
parent 31c75345cb
commit 9adf7d89a7
1 changed files with 1 additions and 0 deletions

View File

@ -672,6 +672,7 @@ static int32_t mndProcessCreateDnodeReq(SRpcMsg *pReq) {
snprintf(ep, TSDB_EP_LEN, "%s:%d", createReq.fqdn, createReq.port);
pDnode = mndAcquireDnodeByEp(pMnode, ep);
if (pDnode != NULL) {
terrno = TSDB_CODE_MND_DNODE_ALREADY_EXIST;
goto _OVER;
}