summaryrefslogtreecommitdiff
path: root/jstests/replsets/temp_namespace.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/temp_namespace.js')
-rw-r--r--jstests/replsets/temp_namespace.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/replsets/temp_namespace.js b/jstests/replsets/temp_namespace.js
index a6a7a839ea6..f8a6f854a68 100644
--- a/jstests/replsets/temp_namespace.js
+++ b/jstests/replsets/temp_namespace.js
@@ -26,10 +26,10 @@ var secondaryDB = secondary.getDB('test');
// set up collections
assert.commandWorked(primaryDB.runCommand(
{applyOps: [{op: "c", ns: primaryDB.getName() + ".$cmd", o: {create: "temp1", temp: true}}]}));
-primaryDB.temp1.createIndex({x: 1});
+primaryDB.temp1.ensureIndex({x: 1});
assert.commandWorked(primaryDB.runCommand(
{applyOps: [{op: "c", ns: primaryDB.getName() + ".$cmd", o: {create: "temp2", temp: 1}}]}));
-primaryDB.temp2.createIndex({x: 1});
+primaryDB.temp2.ensureIndex({x: 1});
assert.commandWorked(primaryDB.runCommand(
{applyOps: [{op: "c", ns: primaryDB.getName() + ".$cmd", o: {create: "keep1", temp: false}}]}));
assert.commandWorked(primaryDB.runCommand(