summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/plan_cache_index_create.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/plan_cache_index_create.js')
-rw-r--r--jstests/noPassthrough/plan_cache_index_create.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/jstests/noPassthrough/plan_cache_index_create.js b/jstests/noPassthrough/plan_cache_index_create.js
index 57f63a7a326..9213f59bc38 100644
--- a/jstests/noPassthrough/plan_cache_index_create.js
+++ b/jstests/noPassthrough/plan_cache_index_create.js
@@ -16,10 +16,7 @@
"command.indexes.0.name": indexName
};
// TODO SERVER-34830: Add command name filter for secondaries once available.
- const secondaryIndexBuildFilter = {
- ns: dbName + ".system.indexes",
- "command.name": indexName
- };
+ const secondaryIndexBuildFilter = {"command.name": indexName};
const curOp = testDB.getSiblingDB("admin").aggregate([
{$currentOp: {}},
{$match: {$or: [primaryIndexBuildFilter, secondaryIndexBuildFilter]}}