Skip to content

Commit

Permalink
buildbot and SERVER-4526 mongos_no_detect_sharding.js split logic may…
Browse files Browse the repository at this point in the history
… change, explicitly check for shard versioning turned on
  • Loading branch information
Greg Studer authored and milkie committed Apr 21, 2012
1 parent 36ae878 commit 6fb6a11
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jstests/sharding/mongos_no_detect_sharding.js
Expand Up @@ -20,6 +20,8 @@ print( "Sharding collection..." )

var admin = mongos.getDB("admin")

assert.eq( coll.getShardVersion().ok, 0 )

admin.runCommand({ enableSharding : "test" })
admin.runCommand({ shardCollection : "test.foo", key : { _id : 1 } })

Expand All @@ -34,6 +36,7 @@ coll.getDB().getLastError()

config.printShardingStatus( true )

assert.gt( config.chunks.find({ _id : /test.foo/ }).itcount(), 1 )
assert.eq( coll.getShardVersion().ok, 1 )
assert.eq( 101, coll.find().itcount() )

st.stop()

0 comments on commit 6fb6a11

Please sign in to comment.