fix(query): add one more check.

This commit is contained in:
Haojun Liao 2022-11-02 14:59:34 +08:00
parent f83b863cf9
commit ecad94c419
1 changed files with 1 additions and 1 deletions

View File

@ -2112,7 +2112,7 @@ static bool isValidFileBlockRow(SBlockData* pBlockData, SFileBlockDumpInfo* pDum
static bool initLastBlockReader(SLastBlockReader* pLBlockReader, STableBlockScanInfo* pScanInfo, STsdbReader* pReader) {
// the last block reader has been initialized for this table.
if (pLBlockReader->uid == pScanInfo->uid) {
if (pLBlockReader->uid == pScanInfo->uid && hasDataInLastBlock(pLBlockReader)) {
return true;
}