提交 f907831f 编写于 作者: C Cary Xu

code restore

上级 ae317a75
......@@ -667,7 +667,7 @@ static int32_t mnodeCreateDnode(char *ep, SMnodeMsg *pMsg) {
if (grantCode != TSDB_CODE_SUCCESS) {
return grantCode;
}
char dnodeEp[TSDB_EP_LEN] = {0};
tstrncpy(dnodeEp, ep, TSDB_EP_LEN);
strtrim(dnodeEp);
......
......@@ -210,7 +210,7 @@ int32_t mnodeCreateFunc(SAcctObj *pAcct, char *name, int32_t codeLen, char *code
if (code != TSDB_CODE_SUCCESS) {
return code;
}
if (name[0] == 0) {
return TSDB_CODE_MND_INVALID_FUNC_NAME;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册