diff options
author | nzolnierzmdb <nicholas.zolnierz@mongodb.com> | 2017-03-13 17:43:32 -0400 |
---|---|---|
committer | Nick Zolnierz <nicholas.zolnierz@mongodb.com> | 2017-03-31 13:24:40 -0400 |
commit | 896687b8ae6b7f848da88c7186a44bf3163c2254 (patch) | |
tree | 0913588b863c50c259a496345c6ad8cac3a42650 /src/mongo/db/pipeline/accumulator_std_dev.cpp | |
parent | 03945fa420fd22a690151593e8afc88bda3008bf (diff) | |
download | mongo-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.cpp | 2 |
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) |