diff options
author | Matt Dannenberg <dannenberg.matt@gmail.com> | 2012-07-09 15:55:14 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2012-07-20 18:49:19 -0400 |
commit | dc0b517d81bc01565e3819493c7379182b5625b3 (patch) | |
tree | faa411e77522fd3512955a6bdc4142ebee334df1 /src/mongo/db/pipeline/accumulator_avg.cpp | |
parent | ef878b16bc24fa4667c2ec367200b49df3ebcd94 (diff) | |
download | mongo-dc0b517d81bc01565e3819493c7379182b5625b3.tar.gz |
SERVER-6179 support multiple $group in sharded agg
Diffstat (limited to 'src/mongo/db/pipeline/accumulator_avg.cpp')
-rwxr-xr-x | src/mongo/db/pipeline/accumulator_avg.cpp | 2 |
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; } |