mirror of https://github.com/citusdata/citus.git
Get rid of EndStripeRead, since we anyway reset mem cxt
parent
83f5d42365
commit
327ae43b83
|
@ -103,7 +103,6 @@ static StripeReadState * BeginStripeRead(StripeMetadata *stripeMetadata, Relatio
|
||||||
TupleDesc tupleDesc, List *projectedColumnList,
|
TupleDesc tupleDesc, List *projectedColumnList,
|
||||||
List *whereClauseList, List *whereClauseVars,
|
List *whereClauseList, List *whereClauseVars,
|
||||||
MemoryContext stripeReadContext);
|
MemoryContext stripeReadContext);
|
||||||
static void EndStripeRead(StripeReadState *stripeReadState);
|
|
||||||
static void AdvanceStripeRead(ColumnarReadState *readState);
|
static void AdvanceStripeRead(ColumnarReadState *readState);
|
||||||
static bool ReadStripeNextRow(StripeReadState *stripeReadState, Datum *columnValues,
|
static bool ReadStripeNextRow(StripeReadState *stripeReadState, Datum *columnValues,
|
||||||
bool *columnNulls);
|
bool *columnNulls);
|
||||||
|
@ -512,16 +511,6 @@ BeginStripeRead(StripeMetadata *stripeMetadata, Relation rel, TupleDesc tupleDes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* EndStripeRead finishes a stripe read.
|
|
||||||
*/
|
|
||||||
static void
|
|
||||||
EndStripeRead(StripeReadState *stripeReadState)
|
|
||||||
{
|
|
||||||
pfree(stripeReadState);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* AdvanceStripeRead updates chunkGroupsFiltered and sets
|
* AdvanceStripeRead updates chunkGroupsFiltered and sets
|
||||||
* currentStripeMetadata for next stripe read.
|
* currentStripeMetadata for next stripe read.
|
||||||
|
@ -534,9 +523,6 @@ AdvanceStripeRead(ColumnarReadState *readState)
|
||||||
|
|
||||||
uint64 lastReadRowNumber =
|
uint64 lastReadRowNumber =
|
||||||
StripeGetHighestRowNumber(readState->currentStripeMetadata);
|
StripeGetHighestRowNumber(readState->currentStripeMetadata);
|
||||||
|
|
||||||
EndStripeRead(readState->stripeReadState);
|
|
||||||
|
|
||||||
readState->currentStripeMetadata = FindNextStripeByRowNumber(readState->relation,
|
readState->currentStripeMetadata = FindNextStripeByRowNumber(readState->relation,
|
||||||
lastReadRowNumber,
|
lastReadRowNumber,
|
||||||
GetTransactionSnapshot());
|
GetTransactionSnapshot());
|
||||||
|
|
Loading…
Reference in New Issue