fix: fix win CI crash caused by tmp variable

This commit is contained in:
Minglei Jin 2022-07-06 17:15:58 +08:00
parent 220636f6fa
commit a0f3655f55
1 changed files with 2 additions and 2 deletions

View File

@ -526,8 +526,8 @@ static int32_t tsdbCommitTableMemData(SCommitter *pCommitter, STbDataIter *pIter
// 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(&key, &toKey) >= 0) {
TSDBKEY tmpKey = TSDBROW_KEY(pRow);
if (tsdbKeyCmprFn(&tmpKey, &toKey) >= 0) {
pRow = NULL;
}
}