fix: submit req pre-process
This commit is contained in:
parent
b133a56219
commit
05d4db4d19
|
@ -101,6 +101,7 @@ int32_t vnodePreProcessWriteMsg(SVnode *pVnode, SRpcMsg *pMsg) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flags & SUBMIT_REQ_AUTO_CREATE_TABLE) {
|
if (flags & SUBMIT_REQ_AUTO_CREATE_TABLE) {
|
||||||
|
// SVCreateTbReq
|
||||||
if (tStartDecode(&dc) < 0) {
|
if (tStartDecode(&dc) < 0) {
|
||||||
code = TSDB_CODE_INVALID_MSG;
|
code = TSDB_CODE_INVALID_MSG;
|
||||||
goto _err;
|
goto _err;
|
||||||
|
@ -126,6 +127,15 @@ int32_t vnodePreProcessWriteMsg(SVnode *pVnode, SRpcMsg *pMsg) {
|
||||||
*(int64_t *)(dc.data + dc.pos + 8) = ctime;
|
*(int64_t *)(dc.data + dc.pos + 8) = ctime;
|
||||||
|
|
||||||
tEndDecode(&dc);
|
tEndDecode(&dc);
|
||||||
|
|
||||||
|
// SSubmitTbData
|
||||||
|
int64_t suid;
|
||||||
|
if (tDecodeI64(&dc, &suid) < 0) {
|
||||||
|
code = TSDB_CODE_INVALID_MSG;
|
||||||
|
goto _err;
|
||||||
|
}
|
||||||
|
|
||||||
|
*(int64_t *)(dc.data + dc.pos) = uid;
|
||||||
}
|
}
|
||||||
|
|
||||||
tEndDecode(&dc);
|
tEndDecode(&dc);
|
||||||
|
|
Loading…
Reference in New Issue