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

update

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