summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/accumulator_first.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/pipeline/accumulator_first.cpp')
-rw-r--r--src/mongo/db/pipeline/accumulator_first.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/accumulator_first.cpp b/src/mongo/db/pipeline/accumulator_first.cpp
index aed285cf5db..b48b9e2330e 100644
--- a/src/mongo/db/pipeline/accumulator_first.cpp
+++ b/src/mongo/db/pipeline/accumulator_first.cpp
@@ -59,7 +59,7 @@ Value AccumulatorFirst::getValue(bool toBeMerged) {
}
AccumulatorFirst::AccumulatorFirst(const boost::intrusive_ptr<ExpressionContext>& expCtx)
- : Accumulator(expCtx), _haveFirst(false) {
+ : AccumulatorState(expCtx), _haveFirst(false) {
_memUsageBytes = sizeof(*this);
}
@@ -70,7 +70,7 @@ void AccumulatorFirst::reset() {
}
-intrusive_ptr<Accumulator> AccumulatorFirst::create(
+intrusive_ptr<AccumulatorState> AccumulatorFirst::create(
const boost::intrusive_ptr<ExpressionContext>& expCtx) {
return new AccumulatorFirst(expCtx);
}