summaryrefslogtreecommitdiff
path: root/jstests/core/coveredIndex2.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/coveredIndex2.js')
-rw-r--r--jstests/core/coveredIndex2.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/jstests/core/coveredIndex2.js b/jstests/core/coveredIndex2.js
index f7b542008f3..058b739fba2 100644
--- a/jstests/core/coveredIndex2.js
+++ b/jstests/core/coveredIndex2.js
@@ -1,3 +1,8 @@
+// Cannot implicitly shard accessed collections because queries on a sharded collection are not
+// able to be covered when they aren't on the shard key since the document needs to be fetched in
+// order to apply the SHARDING_FILTER stage.
+// @tags: [assumes_unsharded_collection]
+
t = db["jstests_coveredIndex2"];
t.drop();