summaryrefslogtreecommitdiff
path: root/jstests/sharding/key_many.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/key_many.js')
-rw-r--r--jstests/sharding/key_many.js44
1 files changed, 21 insertions, 23 deletions
diff --git a/jstests/sharding/key_many.js b/jstests/sharding/key_many.js
index 93ce1b4d64a..96e351c25e8 100644
--- a/jstests/sharding/key_many.js
+++ b/jstests/sharding/key_many.js
@@ -115,9 +115,7 @@
function makeInQuery() {
if (curT.compound) {
// cheating a bit...
- return {
- 'o.a': {$in: [1, 2]}
- };
+ return {'o.a': {$in: [1, 2]}};
} else {
return makeObjectDotted({$in: curT.values});
}
@@ -178,26 +176,26 @@
assert.eq(
6, c.find().sort(makeObjectDotted(1)).count(), curT.name + " total count with count()");
- assert.eq(
- 2,
- c.find({$or: [makeObjectDotted(curT.values[2]), makeObjectDotted(curT.values[4])]})
- .count(),
- curT.name + " $or count()");
- assert.eq(
- 2,
- c.find({$or: [makeObjectDotted(curT.values[2]), makeObjectDotted(curT.values[4])]})
- .itcount(),
- curT.name + " $or itcount()");
- assert.eq(
- 4,
- c.find({$nor: [makeObjectDotted(curT.values[2]), makeObjectDotted(curT.values[4])]})
- .count(),
- curT.name + " $nor count()");
- assert.eq(
- 4,
- c.find({$nor: [makeObjectDotted(curT.values[2]), makeObjectDotted(curT.values[4])]})
- .itcount(),
- curT.name + " $nor itcount()");
+ assert.eq(2,
+ c.find({
+ $or: [makeObjectDotted(curT.values[2]), makeObjectDotted(curT.values[4])]
+ }).count(),
+ curT.name + " $or count()");
+ assert.eq(2,
+ c.find({
+ $or: [makeObjectDotted(curT.values[2]), makeObjectDotted(curT.values[4])]
+ }).itcount(),
+ curT.name + " $or itcount()");
+ assert.eq(4,
+ c.find({
+ $nor: [makeObjectDotted(curT.values[2]), makeObjectDotted(curT.values[4])]
+ }).count(),
+ curT.name + " $nor count()");
+ assert.eq(4,
+ c.find({
+ $nor: [makeObjectDotted(curT.values[2]), makeObjectDotted(curT.values[4])]
+ }).itcount(),
+ curT.name + " $nor itcount()");
var stats = c.stats();
printjson(stats);