fix(tsdb): check return value.

This commit is contained in:
Haojun Liao 2024-08-13 15:49:20 +08:00
parent 90862b1df4
commit b253742155
1 changed files with 1 additions and 1 deletions

View File

@ -5829,7 +5829,7 @@ int32_t tsdbTakeReadSnap2(STsdbReader* pReader, _query_reseek_func_t reseek, STs
code = terrno;
if (pTsdb->mem && pSnap->pNode) {
tsdbUnrefMemTable(pTsdb->mem, pSnap->pNode, true); // unref the previous refed mem
(void) tsdbUnrefMemTable(pTsdb->mem, pSnap->pNode, true); // unref the previous refed mem
}
(void) taosThreadMutexUnlock(&pTsdb->mutex);