Merge remote-tracking branch 'origin/develop' into feature/sync

This commit is contained in:
Shengliang Guan 2021-01-12 09:40:42 +08:00
commit ddf1ad24c9
1 changed files with 6 additions and 0 deletions

View File

@ -2381,6 +2381,12 @@ static int32_t mnodeDoGetChildTableMeta(SMnodeMsg *pMsg, STableMetaMsg *pMeta) {
static int32_t mnodeAutoCreateChildTable(SMnodeMsg *pMsg) { static int32_t mnodeAutoCreateChildTable(SMnodeMsg *pMsg) {
STableInfoMsg *pInfo = pMsg->rpcMsg.pCont; STableInfoMsg *pInfo = pMsg->rpcMsg.pCont;
if (pMsg->rpcMsg.contLen <= sizeof(*pInfo)) {
mError("msg:%p, app:%p table:%s, failed to auto create child table, tags not exist", pMsg, pMsg->rpcMsg.ahandle,
pInfo->tableId);
return TSDB_CODE_MND_TAG_NOT_EXIST;
}
char* p = pInfo->tags; char* p = pInfo->tags;
int32_t nameLen = htonl(*(int32_t*) p); int32_t nameLen = htonl(*(int32_t*) p);
p += sizeof(int32_t); p += sizeof(int32_t);