summaryrefslogtreecommitdiff
path: root/jstests/core/plan_cache_clear.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/plan_cache_clear.js')
-rw-r--r--jstests/core/plan_cache_clear.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/jstests/core/plan_cache_clear.js b/jstests/core/plan_cache_clear.js
index 8f9cf0ea302..778239616b5 100644
--- a/jstests/core/plan_cache_clear.js
+++ b/jstests/core/plan_cache_clear.js
@@ -1,5 +1,12 @@
// Test clearing of the plan cache, either manually through the planCacheClear command,
// or due to system events such as an index build.
+//
+// @tags: [
+// # This test attempts to perform queries and introspect/manipulate the server's plan cache
+// # entries. The former operation may be routed to a secondary in the replica set, whereas the
+// # latter must be routed to the primary.
+// assumes_read_preference_unchanged,
+// ]
var t = db.jstests_plan_cache_clear;
t.drop();