提交 3ec1f3c1 编写于 作者: C Cary Xu

update

上级 79715e69
......@@ -110,9 +110,8 @@ static FORCE_INLINE STSchema* tsdbGetTableSchemaImpl(STable* pTable, bool lock,
} else { // get the schema with version
void* ptr = taosArraySearch(pDTable->schema, &_version, tsdbCompareSchemaVersion, TD_EQ);
if (ptr == NULL) {
pTSchema = *(STSchema**)taosArrayGetLast(pDTable->schema);
// terrno = TSDB_CODE_TDB_IVD_TB_SCHEMA_VERSION;
// goto _exit;
terrno = TSDB_CODE_TDB_IVD_TB_SCHEMA_VERSION;
goto _exit;
} else {
pTSchema = *(STSchema**)ptr;
}
......@@ -126,7 +125,7 @@ static FORCE_INLINE STSchema* tsdbGetTableSchemaImpl(STable* pTable, bool lock,
pSchema = pTSchema;
}
// _exit:
_exit:
if (lock) TSDB_RUNLOCK_TABLE(pDTable);
return pSchema;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册