summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/accumulator_avg.cpp
diff options
context:
space:
mode:
authorMatt Dannenberg <dannenberg.matt@gmail.com>2012-07-09 15:55:14 -0400
committerMathias Stearn <mathias@10gen.com>2012-07-20 18:49:19 -0400
commitdc0b517d81bc01565e3819493c7379182b5625b3 (patch)
treefaa411e77522fd3512955a6bdc4142ebee334df1 /src/mongo/db/pipeline/accumulator_avg.cpp
parentef878b16bc24fa4667c2ec367200b49df3ebcd94 (diff)
downloadmongo-dc0b517d81bc01565e3819493c7379182b5625b3.tar.gz
SERVER-6179 support multiple $group in sharded agg
Diffstat (limited to 'src/mongo/db/pipeline/accumulator_avg.cpp')
-rwxr-xr-xsrc/mongo/db/pipeline/accumulator_avg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/accumulator_avg.cpp b/src/mongo/db/pipeline/accumulator_avg.cpp
index 7217de163d6..7c81f51fc93 100755
--- a/src/mongo/db/pipeline/accumulator_avg.cpp
+++ b/src/mongo/db/pipeline/accumulator_avg.cpp
@@ -28,7 +28,7 @@ namespace mongo {
intrusive_ptr<const Value> AccumulatorAvg::evaluate(
const intrusive_ptr<Document> &pDocument) const {
- if (!pCtx->getInRouter()) {
+ if (!pCtx->getDoingMerge()) {
Super::evaluate(pDocument);
++count;
}