summaryrefslogtreecommitdiff
path: root/jstests/sharding/key_many.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-03-20 23:46:19 -0400
committerEliot Horowitz <eliot@10gen.com>2010-03-20 23:46:19 -0400
commit7a118d59f26c596f509d2d2f422588992e1ed1eb (patch)
tree8ce37c6aa9e87ed87d6ec4d3cf8e125a647d94ed /jstests/sharding/key_many.js
parent1535b29e7518d6055d768f77c40210249a938992 (diff)
downloadmongo-7a118d59f26c596f509d2d2f422588992e1ed1eb.tar.gz
sharding debuggin
Diffstat (limited to 'jstests/sharding/key_many.js')
-rw-r--r--jstests/sharding/key_many.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/jstests/sharding/key_many.js b/jstests/sharding/key_many.js
index 43e7cc5454e..d1644ac53dc 100644
--- a/jstests/sharding/key_many.js
+++ b/jstests/sharding/key_many.js
@@ -1,13 +1,14 @@
// key_many.js
// values have to be sorted
-types =
- [ { name : "string" , values : [ "allan" , "bob" , "eliot" , "joe" , "mark" , "sara" ] , keyfield: "k" } ,
- { name : "double" , values : [ 1.2 , 3.5 , 4.5 , 4.6 , 6.7 , 9.9 ] , keyfield : "a" } ,
- { name : "string_id" , values : [ "allan" , "bob" , "eliot" , "joe" , "mark" , "sara" ] , keyfield : "_id" },
- { name : "embedded" , values : [ "allan" , "bob" , "eliot" , "joe" , "mark" , "sara" ] , keyfield : "a.b" } ,
- { name : "embedded 2" , values : [ "allan" , "bob" , "eliot" , "joe" , "mark" , "sara" ] , keyfield : "a.b.c" } ,
- { name : "object" , values : [ {a:1, b:1.2}, {a:1, b:3.5}, {a:1, b:4.5}, {a:2, b:1.2}, {a:2, b:3.5}, {a:2, b:4.5} ] , keyfield : "o" } ,
+types = [
+ { name : "string" , values : [ "allan" , "bob" , "eliot" , "joe" , "mark" , "sara" ] , keyfield: "k" } ,
+ { name : "double" , values : [ 1.2 , 3.5 , 4.5 , 4.6 , 6.7 , 9.9 ] , keyfield : "a" } ,
+ { name : "date" , values : [ new Date( 1000000 ) , new Date( 2000000 ) , new Date( 3000000 ) , new Date( 4000000 ) , new Date( 5000000 ) , new Date( 6000000 ) ] , keyfield : "a" } ,
+ { name : "string_id" , values : [ "allan" , "bob" , "eliot" , "joe" , "mark" , "sara" ] , keyfield : "_id" },
+ { name : "embedded" , values : [ "allan" , "bob" , "eliot" , "joe" , "mark" , "sara" ] , keyfield : "a.b" } ,
+ { name : "embedded 2" , values : [ "allan" , "bob" , "eliot" , "joe" , "mark" , "sara" ] , keyfield : "a.b.c" } ,
+ { name : "object" , values : [ {a:1, b:1.2}, {a:1, b:3.5}, {a:1, b:4.5}, {a:2, b:1.2}, {a:2, b:3.5}, {a:2, b:4.5} ] , keyfield : "o" } ,
]
s = new ShardingTest( "key_many" , 2 );