From dc0b517d81bc01565e3819493c7379182b5625b3 Mon Sep 17 00:00:00 2001 From: Matt Dannenberg Date: Mon, 9 Jul 2012 15:55:14 -0400 Subject: SERVER-6179 support multiple $group in sharded agg --- src/mongo/db/pipeline/accumulator_avg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo/db/pipeline/accumulator_avg.cpp') 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 AccumulatorAvg::evaluate( const intrusive_ptr &pDocument) const { - if (!pCtx->getInRouter()) { + if (!pCtx->getDoingMerge()) { Super::evaluate(pDocument); ++count; } -- cgit v1.2.1