enh: code optimization
This commit is contained in:
parent
cec7643ea8
commit
f6ad63ac14
|
@ -463,7 +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);
|
||||||
TSDB_CHECK_NULL(tcol, code,lino,_exit,TSDB_CODE_TDB_INVALID_TABLE_SCHEMA_VER);
|
TSDB_CHECK_NULL(tcol, code, lino, _exit, TSDB_CODE_TDB_INVALID_TABLE_SCHEMA_VER);
|
||||||
SBlockCol none = {
|
SBlockCol none = {
|
||||||
.cid = cid,
|
.cid = cid,
|
||||||
.type = tcol->type,
|
.type = tcol->type,
|
||||||
|
|
|
@ -309,7 +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);
|
||||||
TSDB_CHECK_NULL(tcol, code,lino,_exit,TSDB_CODE_TDB_INVALID_TABLE_SCHEMA_VER);
|
TSDB_CHECK_NULL(tcol, code, lino, _exit, TSDB_CODE_TDB_INVALID_TABLE_SCHEMA_VER);
|
||||||
SBlockCol none = {
|
SBlockCol none = {
|
||||||
.cid = cid,
|
.cid = cid,
|
||||||
.type = tcol->type,
|
.type = tcol->type,
|
||||||
|
|
Loading…
Reference in New Issue