summaryrefslogtreecommitdiff
path: root/jstests/sharding/shard2.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-09-01 12:17:41 -0400
committerEliot Horowitz <eliot@10gen.com>2009-09-01 12:17:41 -0400
commit3ee681be363bb9f8b43496c22a947b10e8e18a80 (patch)
tree2ffaeb238ac99b77abfb6c4fcdd27e4c230669aa /jstests/sharding/shard2.js
parentbcd665877bd0e604241c871640ff3b65f1b328a5 (diff)
downloadmongo-3ee681be363bb9f8b43496c22a947b10e8e18a80.tar.gz
more name changes in sharding
Diffstat (limited to 'jstests/sharding/shard2.js')
-rw-r--r--jstests/sharding/shard2.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/sharding/shard2.js b/jstests/sharding/shard2.js
index d15532c9f01..4b6bf895f4d 100644
--- a/jstests/sharding/shard2.js
+++ b/jstests/sharding/shard2.js
@@ -43,10 +43,10 @@ placeCheck( 2 );
// NOTE: at this point we have 2 shard on 1 server
// test move shard
-assert.throws( function(){ s.adminCommand( { moveshard : "test.foo" , find : { num : 1 } , to : primary.getMongo().name } ); } );
-assert.throws( function(){ s.adminCommand( { moveshard : "test.foo" , find : { num : 1 } , to : "adasd" } ) } );
+assert.throws( function(){ s.adminCommand( { movechunk : "test.foo" , find : { num : 1 } , to : primary.getMongo().name } ); } );
+assert.throws( function(){ s.adminCommand( { movechunk : "test.foo" , find : { num : 1 } , to : "adasd" } ) } );
-s.adminCommand( { moveshard : "test.foo" , find : { num : 1 } , to : seconday.getMongo().name } );
+s.adminCommand( { movechunk : "test.foo" , find : { num : 1 } , to : seconday.getMongo().name } );
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" );