fix tests
This commit is contained in:
parent
de8576a6a1
commit
a70b4e28c8
|
@ -366,7 +366,7 @@ int32_t extractMsgFromWal(SWalReader* pReader, void** pItem, int64_t maxVer, con
|
||||||
} else if (pCont->msgType == TDMT_VND_DELETE) {
|
} else if (pCont->msgType == TDMT_VND_DELETE) {
|
||||||
void* pBody = POINTER_SHIFT(pCont->body, sizeof(SMsgHead));
|
void* pBody = POINTER_SHIFT(pCont->body, sizeof(SMsgHead));
|
||||||
int32_t len = pCont->bodyLen - sizeof(SMsgHead);
|
int32_t len = pCont->bodyLen - sizeof(SMsgHead);
|
||||||
EStreamType blockType = pCont->msgType == STREAM_DELETE_DATA;
|
EStreamType blockType = STREAM_DELETE_DATA;
|
||||||
code = tqExtractDelDataBlock(pBody, len, ver, (void**)pItem, 0, blockType);
|
code = tqExtractDelDataBlock(pBody, len, ver, (void**)pItem, 0, blockType);
|
||||||
if (code == TSDB_CODE_SUCCESS) {
|
if (code == TSDB_CODE_SUCCESS) {
|
||||||
if (*pItem == NULL) {
|
if (*pItem == NULL) {
|
||||||
|
|
|
@ -561,7 +561,7 @@ int32_t vnodePreProcessDropTbMsg(SVnode* pVnode, SRpcMsg* pMsg) {
|
||||||
SVDropTbBatchReq receivedBatchReqs = {0};
|
SVDropTbBatchReq receivedBatchReqs = {0};
|
||||||
SVDropTbBatchReq sentBatchReqs = {0};
|
SVDropTbBatchReq sentBatchReqs = {0};
|
||||||
|
|
||||||
tDecoderInit(&dc, pMsg->pCont + sizeof(SMsgHead), pMsg->contLen - sizeof(SMsgHead));
|
tDecoderInit(&dc, POINTER_SHIFT(pMsg->pCont, sizeof(SMsgHead)), pMsg->contLen - sizeof(SMsgHead));
|
||||||
|
|
||||||
code = tDecodeSVDropTbBatchReq(&dc, &receivedBatchReqs);
|
code = tDecodeSVDropTbBatchReq(&dc, &receivedBatchReqs);
|
||||||
if (code < 0) {
|
if (code < 0) {
|
||||||
|
@ -591,7 +591,7 @@ int32_t vnodePreProcessDropTbMsg(SVnode* pVnode, SRpcMsg* pMsg) {
|
||||||
sentBatchReqs.nReqs = sentBatchReqs.pArray->size;
|
sentBatchReqs.nReqs = sentBatchReqs.pArray->size;
|
||||||
|
|
||||||
tEncodeSize(tEncodeSVDropTbBatchReq, &sentBatchReqs, size, code);
|
tEncodeSize(tEncodeSVDropTbBatchReq, &sentBatchReqs, size, code);
|
||||||
tEncoderInit(&ec, pMsg->pCont + sizeof(SMsgHead), size);
|
tEncoderInit(&ec, POINTER_SHIFT(pMsg->pCont, sizeof(SMsgHead)), size);
|
||||||
code = tEncodeSVDropTbBatchReq(&ec, &sentBatchReqs);
|
code = tEncodeSVDropTbBatchReq(&ec, &sentBatchReqs);
|
||||||
tEncoderClear(&ec);
|
tEncoderClear(&ec);
|
||||||
if (code != TSDB_CODE_SUCCESS) {
|
if (code != TSDB_CODE_SUCCESS) {
|
||||||
|
|
Loading…
Reference in New Issue