summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/accumulator_sum.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/pipeline/accumulator_sum.cpp')
-rw-r--r--src/mongo/db/pipeline/accumulator_sum.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/pipeline/accumulator_sum.cpp b/src/mongo/db/pipeline/accumulator_sum.cpp
index 182f592ce3f..6cd34d8c76f 100644
--- a/src/mongo/db/pipeline/accumulator_sum.cpp
+++ b/src/mongo/db/pipeline/accumulator_sum.cpp
@@ -85,7 +85,7 @@ void AccumulatorSum::processInternal(const Value& input, bool merging) {
}
}
-intrusive_ptr<AccumulatorState> AccumulatorSum::create(
+intrusive_ptr<Accumulator> AccumulatorSum::create(
const boost::intrusive_ptr<ExpressionContext>& expCtx) {
return new AccumulatorSum(expCtx);
}
@@ -128,8 +128,8 @@ Value AccumulatorSum::getValue(bool toBeMerged) {
}
AccumulatorSum::AccumulatorSum(const boost::intrusive_ptr<ExpressionContext>& expCtx)
- : AccumulatorState(expCtx) {
- // This is a fixed size AccumulatorState so we never need to update this.
+ : Accumulator(expCtx) {
+ // This is a fixed size Accumulator so we never need to update this.
_memUsageBytes = sizeof(*this);
}