提交 0257c4a9 编写于 作者: M Minglei Jin

fix(query): release reader's lock if not composed block

上级 251fdd35
......@@ -628,7 +628,12 @@ static int32_t tsdbReleaseReader(STsdbReader* pReader) {
return code;
}
void tsdbReleaseDataBlock(STsdbReader* pReader) { tsdbReleaseReader(pReader); }
void tsdbReleaseDataBlock(STsdbReader* pReader) {
SReaderStatus* pStatus = &pReader->status;
if (!pStatus->composedDataBlock) {
tsdbReleaseReader(pReader);
}
}
static int32_t tsdbReaderCreate(SVnode* pVnode, SQueryTableDataCond* pCond, STsdbReader** ppReader, int32_t capacity,
SSDataBlock* pResBlock, const char* idstr) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册