Merge pull request #5616 from taosdata/fix/TD-3592
[TD-3592]<fix>: fix dnode ID syntax in drop dnode <dnode_id>
This commit is contained in:
commit
773802c91b
|
@ -722,6 +722,10 @@ int32_t mnodeDropDnode(SDnodeObj *pDnode, void *pMsg) {
|
|||
static int32_t mnodeDropDnodeByEp(char *ep, SMnodeMsg *pMsg) {
|
||||
SDnodeObj *pDnode = mnodeGetDnodeByEp(ep);
|
||||
if (pDnode == NULL) {
|
||||
if (strspn(ep, "0123456789 ;") != strlen(ep)) {
|
||||
return TSDB_CODE_MND_DNODE_NOT_EXIST;
|
||||
}
|
||||
|
||||
int32_t dnodeId = (int32_t)strtol(ep, NULL, 10);
|
||||
pDnode = mnodeGetDnode(dnodeId);
|
||||
if (pDnode == NULL) {
|
||||
|
|
Loading…
Reference in New Issue