summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod/sharding_multiple_ns_rs.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthroughWithMongod/sharding_multiple_ns_rs.js')
-rw-r--r--jstests/noPassthroughWithMongod/sharding_multiple_ns_rs.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/jstests/noPassthroughWithMongod/sharding_multiple_ns_rs.js b/jstests/noPassthroughWithMongod/sharding_multiple_ns_rs.js
index 0d8af3a1ebe..9c4d73d5a2c 100644
--- a/jstests/noPassthroughWithMongod/sharding_multiple_ns_rs.js
+++ b/jstests/noPassthroughWithMongod/sharding_multiple_ns_rs.js
@@ -6,14 +6,12 @@ s.adminCommand( { shardcollection : "test.foo" , key : { _id : 1 } } );
db = s.getDB( "test" );
-var bulk = db.foo.initializeUnorderedBulkOp();
-var bulk2 = db.bar.initializeUnorderedBulkOp();
for ( i=0; i<100; i++ ) {
- bulk.insert({ _id: i, x: i });
- bulk2.insert({ _id: i, x: i });
+ db.foo.insert( { _id : i , x : i } )
+ db.bar.insert( { _id : i , x : i } )
}
-assert.writeOK(bulk.execute());
-assert.writeOK(bulk2.execute());
+
+db.getLastError();
sh.splitAt( "test.foo" , { _id : 50 } )