Skip to content

Commit

Permalink
Fix a server crash
Browse files Browse the repository at this point in the history
When chunk_group_row_limit is bigger than 110000, there is a crash
caused by ReadStripeNextVector().
  • Loading branch information
japinli committed Jan 29, 2024
1 parent dd0ef07 commit 89f51e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions columnar/src/backend/columnar/columnar_reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -2162,8 +2162,8 @@ ReadStripeNextVector(StripeReadState *stripeReadState, Datum *columnValues,
if (*newVectorSize == 0)
continue;
}

stripeReadState->currentRow += stripeReadState->chunkGroupReadState->rowCount;
else
stripeReadState->currentRow += stripeReadState->chunkGroupReadState->rowCount;

return true;
}
Expand Down Expand Up @@ -2260,4 +2260,4 @@ ReadChunkGroupNextVector(ChunkGroupReadState *chunkGroupReadState, Datum *column
}

return true;
}
}

0 comments on commit 89f51e1

Please sign in to comment.