fix: coverity scan of deadcode when print submit msg
This commit is contained in:
parent
89800c9d54
commit
5d5c0b876c
|
@ -802,16 +802,12 @@ static int32_t vnodeDebugPrintSingleSubmitMsg(SMeta *pMeta, SSubmitBlk *pBlock,
|
||||||
|
|
||||||
tInitSubmitBlkIter(msgIter, pBlock, &blkIter);
|
tInitSubmitBlkIter(msgIter, pBlock, &blkIter);
|
||||||
if (blkIter.row == NULL) return 0;
|
if (blkIter.row == NULL) return 0;
|
||||||
if (!pSchema || (suid != msgIter->suid) || rv != TD_ROW_SVER(blkIter.row)) {
|
|
||||||
if (pSchema) {
|
|
||||||
taosMemoryFreeClear(pSchema);
|
|
||||||
}
|
|
||||||
pSchema = metaGetTbTSchema(pMeta, msgIter->suid, TD_ROW_SVER(blkIter.row), 1); // TODO: use the real schema
|
pSchema = metaGetTbTSchema(pMeta, msgIter->suid, TD_ROW_SVER(blkIter.row), 1); // TODO: use the real schema
|
||||||
if (pSchema) {
|
if (pSchema) {
|
||||||
suid = msgIter->suid;
|
suid = msgIter->suid;
|
||||||
rv = TD_ROW_SVER(blkIter.row);
|
rv = TD_ROW_SVER(blkIter.row);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (!pSchema) {
|
if (!pSchema) {
|
||||||
printf("%s:%d no valid schema\n", tags, __LINE__);
|
printf("%s:%d no valid schema\n", tags, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue