enh: promp the dnode is already in dropping state while repeat drop it

This commit is contained in:
Shengliang Guan 2022-12-23 13:58:18 +08:00
parent d39e34ce7c
commit e6c6de9662
1 changed files with 3 additions and 2 deletions

View File

@ -803,11 +803,12 @@ static int32_t mndProcessDropDnodeReq(SRpcMsg *pReq) {
pDnode = mndAcquireDnode(pMnode, dropReq.dnodeId);
if (pDnode == NULL) {
int32_t err = terrno;
char ep[TSDB_EP_LEN + 1] = {0};
snprintf(ep, sizeof(ep), dropReq.fqdn, dropReq.port);
pDnode = mndAcquireDnodeByEp(pMnode, ep);
if (pDnode == NULL) {
terrno = TSDB_CODE_MND_DNODE_NOT_EXIST;
terrno = err;
goto _OVER;
}
}