Merge pull request #20819 from taosdata/szhou/fix-ts3100

fix: set block allocated to false for each call to downstream operator
This commit is contained in:
Haojun Liao 2023-04-07 22:25:07 +08:00 committed by GitHub
commit a186642afd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -172,9 +172,9 @@ int32_t doOpenAggregateOptr(SOperatorInfo* pOperator) {
int32_t scanFlag = MAIN_SCAN;
bool hasValidBlock = false;
bool blockAllocated = false;
while (1) {
bool blockAllocated = false;
SSDataBlock* pBlock = downstream->fpSet.getNextFn(downstream);
if (pBlock == NULL) {
if (!hasValidBlock) {