enh(query): jump out of loop once queried tables are all found.

This commit is contained in:
Haojun Liao 2023-01-10 13:33:27 +08:00
parent 1354eac985
commit b2a70c0a34
1 changed files with 3 additions and 0 deletions

View File

@ -680,6 +680,9 @@ static int32_t doLoadBlockIndex(STsdbReader* pReader, SDataFReader* pFileReader,
}
taosArrayPush(pIndexList, pBlockIdx);
if (taosArrayGetSize(pIndexList) == taosHashGetSize(pReader->status.pTableMap)) {
break;
}
}
int64_t et2 = taosGetTimestampUs();