summaryrefslogtreecommitdiff
path: root/jstests/sharding/mongos_no_detect_sharding.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/mongos_no_detect_sharding.js')
-rw-r--r--jstests/sharding/mongos_no_detect_sharding.js32
1 files changed, 16 insertions, 16 deletions
diff --git a/jstests/sharding/mongos_no_detect_sharding.js b/jstests/sharding/mongos_no_detect_sharding.js
index 5e4ab46a371..9313ee8bccd 100644
--- a/jstests/sharding/mongos_no_detect_sharding.js
+++ b/jstests/sharding/mongos_no_detect_sharding.js
@@ -5,27 +5,27 @@ var st = new ShardingTest({ name: "mongos_no_detect_sharding",
shards: 1,
mongos: 2 });
-var mongos = st.s
-var config = mongos.getDB("config")
+var mongos = st.s;
+var config = mongos.getDB("config");
-print( "Creating unsharded connection..." )
+print( "Creating unsharded connection..." );
-var mongos2 = st._mongos[1]
+var mongos2 = st._mongos[1];
-var coll = mongos2.getCollection( "test.foo" )
-coll.insert({ i : 0 })
+var coll = mongos2.getCollection( "test.foo" );
+coll.insert({ i : 0 });
-print( "Sharding collection..." )
+print( "Sharding collection..." );
-var admin = mongos.getDB("admin")
+var admin = mongos.getDB("admin");
-assert.eq( coll.getShardVersion().ok, 0 )
+assert.eq( coll.getShardVersion().ok, 0 );
-admin.runCommand({ enableSharding : "test" })
-admin.runCommand({ shardCollection : "test.foo", key : { _id : 1 } })
+admin.runCommand({ enableSharding : "test" });
+admin.runCommand({ shardCollection : "test.foo", key : { _id : 1 } });
-print( "Seeing if data gets inserted unsharded..." )
-print( "No splits occur here!" )
+print( "Seeing if data gets inserted unsharded..." );
+print( "No splits occur here!" );
// Insert a bunch of data which should trigger a split
var bulk = coll.initializeUnorderedBulkOp();
@@ -34,10 +34,10 @@ for( var i = 0; i < 100; i++ ){
}
assert.writeOK(bulk.execute());
-config.printShardingStatus( true )
+config.printShardingStatus( true );
-assert.eq( coll.getShardVersion().ok, 1 )
-assert.eq( 101, coll.find().itcount() )
+assert.eq( coll.getShardVersion().ok, 1 );
+assert.eq( 101, coll.find().itcount() );
st.stop();