diff options
Diffstat (limited to 'src/mongo/db/pipeline/accumulator_sum.cpp')
-rw-r--r-- | src/mongo/db/pipeline/accumulator_sum.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mongo/db/pipeline/accumulator_sum.cpp b/src/mongo/db/pipeline/accumulator_sum.cpp index 13aa12fbfca..bbbf596d4a8 100644 --- a/src/mongo/db/pipeline/accumulator_sum.cpp +++ b/src/mongo/db/pipeline/accumulator_sum.cpp @@ -84,8 +84,9 @@ void AccumulatorSum::processInternal(const Value& input, bool merging) { } } -intrusive_ptr<Accumulator> AccumulatorSum::create() { - return new AccumulatorSum(); +intrusive_ptr<Accumulator> AccumulatorSum::create( + const boost::intrusive_ptr<ExpressionContext>& expCtx) { + return new AccumulatorSum(expCtx); } Value AccumulatorSum::getValue(bool toBeMerged) const { @@ -133,7 +134,8 @@ Value AccumulatorSum::getValue(bool toBeMerged) const { } } -AccumulatorSum::AccumulatorSum() { +AccumulatorSum::AccumulatorSum(const boost::intrusive_ptr<ExpressionContext>& expCtx) + : Accumulator(expCtx) { // This is a fixed size Accumulator so we never need to update this. _memUsageBytes = sizeof(*this); } |