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.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mongo/db/pipeline/accumulator_first.cpp b/src/mongo/db/pipeline/accumulator_first.cpp
index 68ea563ff42..3092bd0e9da 100644
--- a/src/mongo/db/pipeline/accumulator_first.cpp
+++ b/src/mongo/db/pipeline/accumulator_first.cpp
@@ -57,7 +57,8 @@ Value AccumulatorFirst::getValue(bool toBeMerged) const {
return _first;
}
-AccumulatorFirst::AccumulatorFirst() : _haveFirst(false) {
+AccumulatorFirst::AccumulatorFirst(const boost::intrusive_ptr<ExpressionContext>& expCtx)
+ : Accumulator(expCtx), _haveFirst(false) {
_memUsageBytes = sizeof(*this);
}
@@ -68,7 +69,8 @@ void AccumulatorFirst::reset() {
}
-intrusive_ptr<Accumulator> AccumulatorFirst::create() {
- return new AccumulatorFirst();
+intrusive_ptr<Accumulator> AccumulatorFirst::create(
+ const boost::intrusive_ptr<ExpressionContext>& expCtx) {
+ return new AccumulatorFirst(expCtx);
}
}