summaryrefslogtreecommitdiff
path: root/jstests/sharding/prefix_shard_key.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/prefix_shard_key.js')
-rw-r--r--jstests/sharding/prefix_shard_key.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/sharding/prefix_shard_key.js b/jstests/sharding/prefix_shard_key.js
index 632628ebf58..c83ac366ef6 100644
--- a/jstests/sharding/prefix_shard_key.js
+++ b/jstests/sharding/prefix_shard_key.js
@@ -17,6 +17,7 @@ var shard0 = new Mongo( shards[0].host );
var shard1 = new Mongo( shards[1].host );
s.adminCommand( { enablesharding : "test" } );
+s.ensurePrimaryShard('test', 'shard0001');
//******************Part 1********************