Merge pull request #3024 from taosdata/feature/query

[td-225] add unlock read lock of tsdb.
This commit is contained in:
Shengliang Guan 2020-08-11 23:30:13 +08:00 committed by GitHub
commit c0ebe69d8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -2406,6 +2406,8 @@ int32_t tsdbQuerySTableByTagCond(TSDB_REPO_T* tsdb, uint64_t uid, TSKEY skey, co
} CATCH( code ) {
CLEANUP_EXECUTE();
terrno = code;
tsdbUnlockRepoMeta(tsdb); // unlock tsdb in any cases
goto _error;
// TODO: more error handling
} END_TRY