fix: fix win CI crash caused by tmp variable

This commit is contained in:
Minglei Jin 2022-07-06 17:10:08 +08:00
parent 1c7f6bf28e
commit ce90d228f9
1 changed files with 8 additions and 1 deletions

View File

@ -523,7 +523,14 @@ static int32_t tsdbCommitTableMemData(SCommitter *pCommitter, STbDataIter *pIter
tsdbTbDataIterNext(pIter);
pRow = tsdbTbDataIterGet(pIter);
if (pRow && tsdbKeyCmprFn(&TSDBROW_KEY(pRow), &toKey) >= 0) pRow = NULL;
// if (pRow && tsdbKeyCmprFn(&TSDBROW_KEY(pRow), &toKey) >= 0) pRow = NULL;
// crash on CI, use the block following
if (pRow) {
TSDBKEY key = TSDBROW_KEY(pRow);
if (tsdbKeyCmprFn(&TSDBROW_KEY(pRow), &toKey) >= 0) {
pRow = NULL;
}
}
if (pBlockData->nRow >= pCommitter->maxRow * 4 / 5) goto _write_block;
continue;