Merge branch 'hotfix/crash' of https://github.com/taosdata/TDengine into hotfix/crash

This commit is contained in:
Shengliang Guan 2020-06-30 23:21:29 +08:00
commit f75bcded71
1 changed files with 1 additions and 1 deletions

View File

@ -1989,7 +1989,7 @@ static int32_t mnodeAutoCreateChildTable(SMnodeMsg *pMsg) {
pCreateMsg->getMeta = 1;
pCreateMsg->contLen = htonl(contLen);
memcpy(pCreateMsg->schema, pTags, contLen);
memcpy(pCreateMsg->schema, pTags, contLen - sizeof(SCMCreateTableMsg));
mDebug("app:%p:%p, table:%s, start to create on demand, tagLen:%d stable:%s",
pMsg->rpcMsg.ahandle, pMsg, pInfo->tableId, tagLen, pTags->name);