~ubuntu-branches/ubuntu/wily/mongodb/wily

« back to all changes in this revision

Viewing changes to jstests/sharding/sort1.js

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-08-26 09:41:32 UTC
  • mfrom: (1.2.25)
  • Revision ID: package-import@ubuntu.com-20130826094132-8cknfm4syxyip1zt
Tags: 1:2.4.6-0ubuntu1
* New upstream point release.
* d/control,d/tests/*: Add autopkgtests for server process and client
  shell functionality.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
s = new ShardingTest( "sort1" , 2 , 0 , 2 )
 
3
s.stopBalancer();
3
4
 
4
5
s.adminCommand( { enablesharding : "test" } );
5
6
s.adminCommand( { shardcollection : "test.data" , key : { 'sub.num' : 1 } } );
20
21
s.adminCommand( { split : "test.data" , middle : { 'sub.num' : 33 } } )
21
22
s.adminCommand( { split : "test.data" , middle : { 'sub.num' : 66 } } )
22
23
 
23
 
s.adminCommand( { movechunk : "test.data" , find : { 'sub.num' : 50 } , to : s.getOther( s.getServer( "test" ) ).name } );
 
24
s.adminCommand({ movechunk : "test.data", 
 
25
                 find : { 'sub.num' : 50 }, 
 
26
                 to : s.getOther( s.getServer( "test" ) ).name,
 
27
                 waitForDelete : true });
24
28
 
25
29
assert.lte( 3 , s.config.chunks.find().itcount() , "A1" );
26
30