提交 a0f3655f 编写于 作者: M Minglei Jin

fix: fix win CI crash caused by tmp variable

上级 220636f6
...@@ -526,8 +526,8 @@ static int32_t tsdbCommitTableMemData(SCommitter *pCommitter, STbDataIter *pIter ...@@ -526,8 +526,8 @@ static int32_t tsdbCommitTableMemData(SCommitter *pCommitter, STbDataIter *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 // crash on CI, use the block following
if (pRow) { if (pRow) {
TSDBKEY key = TSDBROW_KEY(pRow); TSDBKEY tmpKey = TSDBROW_KEY(pRow);
if (tsdbKeyCmprFn(&key, &toKey) >= 0) { if (tsdbKeyCmprFn(&tmpKey, &toKey) >= 0) {
pRow = NULL; pRow = NULL;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册