[TD-437] fix invalid read while auto create table
This commit is contained in:
parent
f2da3ef290
commit
6482d53723
|
@ -1754,13 +1754,13 @@ static int32_t mnodeAutoCreateChildTable(SMnodeMsg *pMsg) {
|
||||||
pCreateMsg->contLen = htonl(contLen);
|
pCreateMsg->contLen = htonl(contLen);
|
||||||
|
|
||||||
memcpy(pCreateMsg->schema, pInfo->tags, contLen - sizeof(SCMCreateTableMsg));
|
memcpy(pCreateMsg->schema, pInfo->tags, contLen - sizeof(SCMCreateTableMsg));
|
||||||
|
mTrace("table:%s, start to create on demand, stable:%s", pInfo->tableId, pInfo->tags);
|
||||||
|
|
||||||
rpcFreeCont(pMsg->rpcMsg.pCont);
|
rpcFreeCont(pMsg->rpcMsg.pCont);
|
||||||
pMsg->rpcMsg.msgType = TSDB_MSG_TYPE_CM_CREATE_TABLE;
|
pMsg->rpcMsg.msgType = TSDB_MSG_TYPE_CM_CREATE_TABLE;
|
||||||
pMsg->rpcMsg.pCont = pCreateMsg;
|
pMsg->rpcMsg.pCont = pCreateMsg;
|
||||||
pMsg->rpcMsg.contLen = contLen;
|
pMsg->rpcMsg.contLen = contLen;
|
||||||
|
|
||||||
mTrace("table:%s, start to create on demand, stable:%s", pInfo->tableId, pInfo->tags);
|
|
||||||
|
|
||||||
return TSDB_CODE_ACTION_NEED_REPROCESSED;
|
return TSDB_CODE_ACTION_NEED_REPROCESSED;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue