fix: add htonl to numOfBlocks
This commit is contained in:
parent
d7288bfa45
commit
e607f5a16e
|
@ -241,6 +241,7 @@ typedef struct {
|
||||||
int32_t schemaLen; // schema length, if length is 0, no schema exists
|
int32_t schemaLen; // schema length, if length is 0, no schema exists
|
||||||
int16_t numOfRows; // total number of rows in current submit block
|
int16_t numOfRows; // total number of rows in current submit block
|
||||||
// head of SSubmitBlk
|
// head of SSubmitBlk
|
||||||
|
int32_t numOfBlocks;
|
||||||
const void* pMsg;
|
const void* pMsg;
|
||||||
} SSubmitMsgIter;
|
} SSubmitMsgIter;
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,7 @@ int32_t tInitSubmitMsgIter(const SSubmitReq *pMsg, SSubmitMsgIter *pIter) {
|
||||||
}
|
}
|
||||||
|
|
||||||
pIter->totalLen = htonl(pMsg->length);
|
pIter->totalLen = htonl(pMsg->length);
|
||||||
|
pIter->numOfBlocks = htonl(pMsg->numOfBlocks);
|
||||||
ASSERT(pIter->totalLen > 0);
|
ASSERT(pIter->totalLen > 0);
|
||||||
pIter->len = 0;
|
pIter->len = 0;
|
||||||
pIter->pMsg = pMsg;
|
pIter->pMsg = pMsg;
|
||||||
|
|
Loading…
Reference in New Issue