diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-03-26 17:28:33 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-03-26 17:28:33 -0400 |
commit | 199110c11672ba25cfbfe93ef39529248dbe6de3 (patch) | |
tree | a6fdf36908cd97a2c0c324a3f6f88df94b512ac2 | |
parent | 1b13a418fa2840717cfeb0bb567a0990cef53162 (diff) | |
download | mongo-199110c11672ba25cfbfe93ef39529248dbe6de3.tar.gz |
better debugging
-rw-r--r-- | jstests/sharding/shard2.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/shard2.js b/jstests/sharding/shard2.js index 2cceec70592..15eff705fbb 100644 --- a/jstests/sharding/shard2.js +++ b/jstests/sharding/shard2.js @@ -44,7 +44,7 @@ s.adminCommand( { moveshard : "test.foo" , find : { num : 1 } , to : seconday.ge assert.eq( 2 , seconday.foo.find().length() , "seconday should have 2 after move shard" ); assert.eq( 1 , primary.foo.find().length() , "primary should only have 1 after move shard" ); -assert.eq( 2 , s.config.shard.count() , "still should have 2 shards" ); +assert.eq( 2 , s.config.shard.count() , "still should have 2 shards after move not:" + s.config.shard.find().toArray().tojson( true ) ); shards = s.config.shard.find().toArray(); assert.neq( shards[0].server , shards[1].server , "servers should NOT be the same after the move" ); |