summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/accumulator_std_dev.cpp
diff options
context:
space:
mode:
authornzolnierzmdb <nicholas.zolnierz@mongodb.com>2017-03-13 17:43:32 -0400
committerNick Zolnierz <nicholas.zolnierz@mongodb.com>2017-03-31 13:24:40 -0400
commit896687b8ae6b7f848da88c7186a44bf3163c2254 (patch)
tree0913588b863c50c259a496345c6ad8cac3a42650 /src/mongo/db/pipeline/accumulator_std_dev.cpp
parent03945fa420fd22a690151593e8afc88bda3008bf (diff)
downloadmongo-896687b8ae6b7f848da88c7186a44bf3163c2254.tar.gz
SERVER-24879 Add $mergeObjects aggregation expression
Diffstat (limited to 'src/mongo/db/pipeline/accumulator_std_dev.cpp')
-rw-r--r--src/mongo/db/pipeline/accumulator_std_dev.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/accumulator_std_dev.cpp b/src/mongo/db/pipeline/accumulator_std_dev.cpp
index f45678dce27..159f95f16df 100644
--- a/src/mongo/db/pipeline/accumulator_std_dev.cpp
+++ b/src/mongo/db/pipeline/accumulator_std_dev.cpp
@@ -83,7 +83,7 @@ void AccumulatorStdDev::processInternal(const Value& input, bool merging) {
}
}
-Value AccumulatorStdDev::getValue(bool toBeMerged) const {
+Value AccumulatorStdDev::getValue(bool toBeMerged) {
if (!toBeMerged) {
const long long adjustedCount = (_isSamp ? _count - 1 : _count);
if (adjustedCount <= 0)