summaryrefslogtreecommitdiff
path: root/jstests/sharding/migrateBig.js
diff options
context:
space:
mode:
authorAntonin Kral <a.kral@bobek.cz>2011-12-15 10:02:19 +0100
committerAntonin Kral <a.kral@bobek.cz>2011-12-15 10:02:46 +0100
commit0b48f8ada2acb0de830b23f8cefc8e3fea28d915 (patch)
treef7c2811269b6b53199412be2dd5ec02eea15d55d /jstests/sharding/migrateBig.js
parent85f1cd56145b90a32b7ccdc750000deeed54fe22 (diff)
parentf0d9a01bccdaeb466c12c92057914bbfef59526c (diff)
downloadmongodb-0b48f8ada2acb0de830b23f8cefc8e3fea28d915.tar.gz
Merge branch 'upstream/2.0.2'
Diffstat (limited to 'jstests/sharding/migrateBig.js')
-rw-r--r--jstests/sharding/migrateBig.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/jstests/sharding/migrateBig.js b/jstests/sharding/migrateBig.js
index 917f152..1613f17 100644
--- a/jstests/sharding/migrateBig.js
+++ b/jstests/sharding/migrateBig.js
@@ -35,8 +35,16 @@ db.printShardingStatus()
assert.throws( function(){ s.adminCommand( { movechunk : "test.foo" , find : { x : 50 } , to : s.getOther( s.getServer( "test" ) ).name } ); } , [] , "move should fail" )
-for ( i=0; i<20; i+= 2 )
- s.adminCommand( { split : "test.foo" , middle : { x : i } } )
+for ( i=0; i<20; i+= 2 ) {
+ try {
+ s.adminCommand( { split : "test.foo" , middle : { x : i } } );
+ }
+ catch ( e ) {
+ // we may have auto split on some of these
+ // which is ok
+ print(e);
+ }
+}
db.printShardingStatus()