Merge pull request #4822 from taosdata/hotfix/TD-2659

[TD-2659]<fix>:taosd crash when executing interval query
This commit is contained in:
haojun Liao 2021-01-07 10:40:27 +08:00 committed by GitHub
commit 3202b93234
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -758,7 +758,12 @@ static void doUpdateResultRowIndex(SResultRowInfo*pResultRowInfo, TSKEY lastKey,
}
}
pResultRowInfo->curIndex = i + 1; // current not closed result object
if (i == pResultRowInfo->size - 1) {
pResultRowInfo->curIndex = i;
} else {
pResultRowInfo->curIndex = i + 1; // current not closed result object
}
pResultRowInfo->prevSKey = pResultRowInfo->pResult[pResultRowInfo->curIndex]->win.skey;
}
}