summaryrefslogtreecommitdiff
path: root/jstests/sharding/sort1.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/sort1.js')
-rw-r--r--jstests/sharding/sort1.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/sharding/sort1.js b/jstests/sharding/sort1.js
index aea55741251..f2a682a82d2 100644
--- a/jstests/sharding/sort1.js
+++ b/jstests/sharding/sort1.js
@@ -3,6 +3,7 @@ s = new ShardingTest( "sort1" , 2 , 0 , 2 )
s.stopBalancer();
s.adminCommand( { enablesharding : "test" } );
+s.ensurePrimaryShard('test', 'shard0001');
s.adminCommand( { shardcollection : "test.data" , key : { 'sub.num' : 1 } } );
db = s.getDB( "test" );