提交 27657f2e 编写于 作者: L lihui

[TBASE-1215 ROLLBACK]

上级 91cd701d
......@@ -1807,7 +1807,7 @@ int tscBuildCreateDbMsg(SSqlObj *pSql) {
pMsg += sizeof(SMgmtHead);
pCreateDbMsg = (SCreateDbMsg *)pMsg;
(void)extractDBName(pMeterMetaInfo->name, pCreateDbMsg->db); // only send db name, then recombining db name + acctId on the mgmt
strncpy(pCreateDbMsg->db, pMeterMetaInfo->name, tListLen(pCreateDbMsg->db));
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));
sprintf(pDb->name, "%d.%s", pAcct->acctId, pCreate->db); // set fullname
strcpy(pDb->name, pCreate->db);
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.
先完成此消息的编辑!
想要评论请 注册