fix a bug

This commit is contained in:
Hongze Cheng 2022-07-04 07:01:54 +00:00
parent 8d00f1139a
commit 40d34bf894
1 changed files with 2 additions and 1 deletions

View File

@ -637,7 +637,8 @@ static int32_t tsdbMergeAsSubBlock(SCommitter *pCommitter, STbDataIter *pIter, S
tsdbTbDataIterNext(pIter);
pRow = tsdbTbDataIterGet(pIter);
if (pRow) {
int32_t c = tBlockCmprFn(&(SBlock){}, pBlock);
TSDBKEY key = TSDBROW_KEY(pRow);
int32_t c = tBlockCmprFn(&(SBlock){.minKey = key, .maxKey = key}, pBlock);
if (c == 0) {
code =