refactor: opt tsdb performance.

This commit is contained in:
Haojun Liao 2022-08-04 18:12:44 +08:00
parent 3a5fcefc8d
commit 271528f4e2
1 changed files with 1 additions and 1 deletions

View File

@ -2113,7 +2113,7 @@ TSDBROW* getValidRow(SIterInfo* pIter, const SArray* pDelList, STsdbReader* pRea
}
TSDBROW* pRow = tsdbTbDataIterGet(pIter->iter);
TSDBKEY key = TSDBROW_KEY(pRow);
TSDBKEY key = {.ts = pRow->pTSRow->ts, .version = pRow->version};
if (outOfTimeWindow(key.ts, &pReader->window)) {
pIter->hasVal = false;
return NULL;