summaryrefslogtreecommitdiff
path: root/jstests/aggregation/bugs/server22093.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/aggregation/bugs/server22093.js')
-rw-r--r--jstests/aggregation/bugs/server22093.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/jstests/aggregation/bugs/server22093.js b/jstests/aggregation/bugs/server22093.js
index ff8fda9c666..b47d268cfa4 100644
--- a/jstests/aggregation/bugs/server22093.js
+++ b/jstests/aggregation/bugs/server22093.js
@@ -2,9 +2,12 @@
// from the input documents will tell the query planner to use a count scan, which is faster than an
// index scan. In this test file, we check this behavior through explain().
//
+// Cannot implicitly shard accessed collections because the explain output from a mongod when run
+// against a sharded collection is wrapped in a "shards" object with keys for each shard.
+//
// This test assumes that an initial $match will be absorbed by the query system, which will not
// happen if the $match is wrapped within a $facet stage.
-// @tags: [do_not_wrap_aggregations_in_facets]
+// @tags: [do_not_wrap_aggregations_in_facets,assumes_unsharded_collection]
load('jstests/libs/analyze_plan.js');
(function() {