summaryrefslogtreecommitdiff
path: root/jstests/sharding/array_shard_key.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/array_shard_key.js')
-rw-r--r--jstests/sharding/array_shard_key.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/sharding/array_shard_key.js b/jstests/sharding/array_shard_key.js
index 09b9ca41a46..309f6191414 100644
--- a/jstests/sharding/array_shard_key.js
+++ b/jstests/sharding/array_shard_key.js
@@ -87,14 +87,14 @@ assert.eq( coll.find().itcount(), 0 )
coll.ensureIndex({ _id : 1, i : 1, j: 1 });
// Can insert document that will make index into a multi-key as long as it's not part of shard key.
-coll.drop();
+coll.remove({});
coll.insert({ i: 1, j: [1, 2] });
error = coll.getDB().getLastError();
assert.eq( error, null );
assert.eq( coll.find().itcount(), 1 );
// Same is true for updates.
-coll.drop();
+coll.remove({});
coll.insert({ _id: 1, i: 1 });
coll.update({ _id: 1, i: 1 }, { _id: 1, i:1, j: [1, 2] });
error = coll.getDB().getLastError();
@@ -102,7 +102,7 @@ assert.eq( error, null );
assert.eq( coll.find().itcount(), 1 );
// Same for upserts.
-coll.drop();
+coll.remove({});
coll.update({ _id: 1, i: 1 }, { _id: 1, i:1, j: [1, 2] }, true);
error = coll.getDB().getLastError();
assert.eq( error, null );