summaryrefslogtreecommitdiff
path: root/jstests/sharding/shard3.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-07-02 00:51:41 -0400
committerEliot Horowitz <eliot@10gen.com>2010-07-02 00:51:41 -0400
commit92e8ad86faaf3245893f309a7cae44dee9261108 (patch)
tree1380b7455466ab78cabb99611bedd5074d24d89f /jstests/sharding/shard3.js
parent224ca4aecdde61bea54af48acf58c39994a497ca (diff)
downloadmongo-92e8ad86faaf3245893f309a7cae44dee9261108.tar.gz
finish first cut at migrate in mognod and lots of fixes SERVER-933
Diffstat (limited to 'jstests/sharding/shard3.js')
-rw-r--r--jstests/sharding/shard3.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/jstests/sharding/shard3.js b/jstests/sharding/shard3.js
index df82907d338..226ec9195f6 100644
--- a/jstests/sharding/shard3.js
+++ b/jstests/sharding/shard3.js
@@ -62,12 +62,16 @@ assert( a.findOne( { num : 1 } ) )
assert( b.findOne( { num : 1 } ) )
print( "GOING TO MOVE" );
+assert( a.findOne( { num : 1 } ) , "pre move 1" )
s.printCollectionInfo( "test.foo" );
-s.adminCommand( { movechunk : "test.foo" , find : { num : 1 } , to : s.getOther( s.getServer( "test" ) ).name } );
+myto = s.getOther( s.getServer( "test" ) ).name
+print( "counts before move: " + tojson( s.shardCounts( "foo" ) ) );
+s.adminCommand( { movechunk : "test.foo" , find : { num : 1 } , to : myto } )
+print( "counts after move: " + tojson( s.shardCounts( "foo" ) ) );
s.printCollectionInfo( "test.foo" );
assert.eq( 1 , s.onNumShards( "foo" ) , "on 1 shard again" );
-assert( a.findOne( { num : 1 } ) )
-assert( b.findOne( { num : 1 } ) )
+assert( a.findOne( { num : 1 } ) , "post move 1" )
+assert( b.findOne( { num : 1 } ) , "post move 2" )
print( "*** drop" );