提交 30773c4e 编写于 作者: L lihui

[TBASE-1215]

上级 553df7ff
......@@ -1807,7 +1807,7 @@ int tscBuildCreateDbMsg(SSqlObj *pSql) {
pMsg += sizeof(SMgmtHead);
pCreateDbMsg = (SCreateDbMsg *)pMsg;
strncpy(pCreateDbMsg->db, pMeterMetaInfo->name, tListLen(pCreateDbMsg->db));
(void)extractDBName(pMeterMetaInfo->name, pCreateDbMsg->db); // only send db name, then recombining db name + acctId on the mgmt
pMsg += sizeof(SCreateDbMsg);
msgLen = pMsg - pStart;
......
......@@ -256,7 +256,7 @@ int mgmtCreateDb(SAcctObj *pAcct, SCreateDbMsg *pCreate) {
pDb = malloc(sizeof(SDbObj));
memset(pDb, 0, sizeof(SDbObj));
strcpy(pDb->name, pCreate->db);
sprintf(pDb->name, "%s.%s", pAcct->acctId, pCreate->db); // set fullname
strcpy(pCreate->acct, pAcct->user);
pDb->createdTime = taosGetTimestampMs();
pDb->cfg = *pCreate;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册