diff options
author | Randolph Tan <randolph@10gen.com> | 2017-02-24 15:54:02 -0500 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2017-02-27 14:39:51 -0500 |
commit | c182228144f551c0a0d1f6d2ab0a23187ff9ac5a (patch) | |
tree | 0cf343a93d4e161d281f03c53a8fd0b250723c16 /jstests/ssl | |
parent | 506571956d4c1cd14db5d04caa6af46284d5c884 (diff) | |
download | mongo-c182228144f551c0a0d1f6d2ab0a23187ff9ac5a.tar.gz |
SERVER-28105 sharding_with_x509.js should use deletes that can be versioned
Diffstat (limited to 'jstests/ssl')
-rw-r--r-- | jstests/ssl/sharding_with_x509.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/jstests/ssl/sharding_with_x509.js b/jstests/ssl/sharding_with_x509.js index 0a43e8229fc..90101a51ca4 100644 --- a/jstests/ssl/sharding_with_x509.js +++ b/jstests/ssl/sharding_with_x509.js @@ -32,10 +32,7 @@ var coll = st.s.getCollection("test.foo"); - st.shardColl(coll, {_id: 1}, false); - - // Create an index so we can find by num later - coll.ensureIndex({insert: 1}); + st.shardColl(coll, {insert: 1}, false); print("starting insertion phase"); @@ -64,7 +61,7 @@ var toDelete = toInsert / 2; bulk = coll.initializeUnorderedBulkOp(); for (var i = 0; i < toDelete; i++) { - bulk.find({insert: i}).remove(); + bulk.find({insert: i}).removeOne(); } assert.writeOK(bulk.execute()); |