summaryrefslogtreecommitdiff
path: root/jstests/core/top.js
diff options
context:
space:
mode:
authorDianna Hohensee <dianna.hohensee@10gen.com>2018-08-27 13:06:38 -0400
committerDianna Hohensee <dianna.hohensee@10gen.com>2018-08-29 16:47:09 -0400
commit4cb0742947dabee476c9979cae39c728a21568d5 (patch)
tree8ec6baacaab48a11b20eae4781f32be1bdad6ec2 /jstests/core/top.js
parentaa36a9e8ad8c98e828f1b53966672b368d973380 (diff)
downloadmongo-4cb0742947dabee476c9979cae39c728a21568d5.tar.gz
SERVER-36015 Remove references to system.namespaces and system.indexes
Diffstat (limited to 'jstests/core/top.js')
-rw-r--r--jstests/core/top.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/jstests/core/top.js b/jstests/core/top.js
index 5919cdbe59d..eca4570472f 100644
--- a/jstests/core/top.js
+++ b/jstests/core/top.js
@@ -114,12 +114,7 @@
// createIndex
res = assert.commandWorked(testColl.createIndex({x: 1}));
assertTopDiffEq(testColl, lastTop, "writeLock", 1);
- // The createIndex shell helper is run as an insert when writeMode is not "commands".
- if (testDB.getMongo().writeMode() === "commands") {
- lastTop = assertTopDiffEq(testColl, lastTop, "commands", 1);
- } else {
- lastTop = assertTopDiffEq(testColl, lastTop, "insert", 1);
- }
+ lastTop = assertTopDiffEq(testColl, lastTop, "commands", 1);
// dropIndex
res = assert.commandWorked(testColl.dropIndex({x: 1}));