summaryrefslogtreecommitdiff
path: root/jstests/sharding/count1.js
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2014-11-26 16:30:15 -0500
committerRandolph Tan <randolph@10gen.com>2014-12-05 14:38:12 -0500
commitefe02e71561d2ca9ebd4419734f235603c94a9da (patch)
tree7e72fe1369c246fb7ede64870f02950809fb3182 /jstests/sharding/count1.js
parent09abd0fe8e9dcce0980fff598b16e676e08abde2 (diff)
downloadmongo-efe02e71561d2ca9ebd4419734f235603c94a9da.tar.gz
SERVER-15674 Auto split of low top chunk does not move it to appropriate shard node
Diffstat (limited to 'jstests/sharding/count1.js')
-rw-r--r--jstests/sharding/count1.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/sharding/count1.js b/jstests/sharding/count1.js
index 8d36cd5f6f5..082281f5f84 100644
--- a/jstests/sharding/count1.js
+++ b/jstests/sharding/count1.js
@@ -52,9 +52,9 @@ db.foo.save( { _id : 6 , name : "allan" } )
assert.eq( 6 , db.foo.find().count() , "basic count" );
// part 2
-s.adminCommand( { split : "test.foo" , find : { name : "joe" } } ); // [Minkey -> allan) , * [allan -> ..)
-s.adminCommand( { split : "test.foo" , find : { name : "joe" } } ); // * [allan -> sara) , [sara -> Maxkey)
-s.adminCommand( { split : "test.foo" , find : { name : "joe" } } ); // [alan -> eliot) , [eliot -> sara]
+s.adminCommand({ split: "test.foo", middle: { name: "allan" }});
+s.adminCommand({ split: "test.foo", middle: { name: "sara" }});
+s.adminCommand({ split: "test.foo", middle: { name: "eliot" }});
// MINKEY->allan,bob->eliot,joe,mark->sara,MAXKEY
@@ -175,4 +175,4 @@ var negSkipLimitResult = db.runCommand({ count: 'foo', skip : -2, limit : 1 });
assert( ! negSkipLimitResult.ok , "negative skip value with limit shouldn't work" );
assert( negSkipLimitResult.errmsg.length > 0 , "no error msg for negative skip" );
-s.stop(); \ No newline at end of file
+s.stop();