summaryrefslogtreecommitdiff
path: root/jstests/sharding/cursor1.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/cursor1.js')
-rw-r--r--jstests/sharding/cursor1.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/sharding/cursor1.js b/jstests/sharding/cursor1.js
index 6ca7e5ff1cb..c0c3439ac5b 100644
--- a/jstests/sharding/cursor1.js
+++ b/jstests/sharding/cursor1.js
@@ -9,6 +9,7 @@ s.config.settings.find().forEach( printjson )
// create a sharded 'test.foo', for the moment with just one chunk
s.adminCommand( { enablesharding: "test" } );
+s.ensurePrimaryShard('test', 'shard0001');
s.adminCommand( { shardcollection: "test.foo", key: { _id: 1 } } )
db = s.getDB( "test" );