enh: code optimization
This commit is contained in:
parent
fe07324d72
commit
cec7643ea8
|
@ -463,9 +463,7 @@ int32_t tsdbDataFileReadBlockDataByColumn(SDataFileReader *reader, const SBrinRe
|
||||||
|
|
||||||
if (cid < blockCol.cid) {
|
if (cid < blockCol.cid) {
|
||||||
const STColumn *tcol = tTSchemaSearchColumn(pTSchema, cid);
|
const STColumn *tcol = tTSchemaSearchColumn(pTSchema, cid);
|
||||||
if (tcol == NULL) {
|
TSDB_CHECK_NULL(tcol, code,lino,_exit,TSDB_CODE_TDB_INVALID_TABLE_SCHEMA_VER);
|
||||||
TAOS_CHECK_GOTO(TSDB_CODE_TDB_INVALID_TABLE_SCHEMA_VER, &lino, _exit);
|
|
||||||
}
|
|
||||||
SBlockCol none = {
|
SBlockCol none = {
|
||||||
.cid = cid,
|
.cid = cid,
|
||||||
.type = tcol->type,
|
.type = tcol->type,
|
||||||
|
|
|
@ -1004,10 +1004,7 @@ int32_t tMergeTreeOpen2(SMergeTree *pMTree, SMergeTreeConf *pConf, SSttDataInfoF
|
||||||
pSttDataInfo->numOfRows += numOfRows;
|
pSttDataInfo->numOfRows += numOfRows;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if(terrno != TSDB_CODE_SUCCESS) {
|
TAOS_CHECK_GOTO(terrno, NULL, _end);
|
||||||
code = terrno;
|
|
||||||
goto _end;
|
|
||||||
}
|
|
||||||
if (!pMTree->ignoreEarlierTs) {
|
if (!pMTree->ignoreEarlierTs) {
|
||||||
pMTree->ignoreEarlierTs = pIter->ignoreEarlierTs;
|
pMTree->ignoreEarlierTs = pIter->ignoreEarlierTs;
|
||||||
}
|
}
|
||||||
|
|
|
@ -309,9 +309,7 @@ int32_t tsdbSttFileReadBlockDataByColumn(SSttFileReader *reader, const SSttBlk *
|
||||||
|
|
||||||
if (cid < blockCol.cid) {
|
if (cid < blockCol.cid) {
|
||||||
const STColumn *tcol = tTSchemaSearchColumn(pTSchema, cid);
|
const STColumn *tcol = tTSchemaSearchColumn(pTSchema, cid);
|
||||||
if (tcol == NULL) {
|
TSDB_CHECK_NULL(tcol, code,lino,_exit,TSDB_CODE_TDB_INVALID_TABLE_SCHEMA_VER);
|
||||||
TAOS_CHECK_GOTO(TSDB_CODE_TDB_INVALID_TABLE_SCHEMA_VER, &lino, _exit);
|
|
||||||
}
|
|
||||||
SBlockCol none = {
|
SBlockCol none = {
|
||||||
.cid = cid,
|
.cid = cid,
|
||||||
.type = tcol->type,
|
.type = tcol->type,
|
||||||
|
|
Loading…
Reference in New Issue