summaryrefslogtreecommitdiff
path: root/jstests/sharding/mapReduce.js
diff options
context:
space:
mode:
authorSiyuan Zhou <siyuan.zhou@mongodb.com>2013-10-16 17:18:37 -0400
committerMatt Kangas <matt.kangas@mongodb.com>2013-10-24 15:19:57 -0400
commit6cfb561b21444b562df7f4e486b0cbd8de17ec42 (patch)
tree43aa625058caea7de388a314952f178b4fa27700 /jstests/sharding/mapReduce.js
parentbc05262b903baafd4a286008ab3323172d8c3275 (diff)
downloadmongo-6cfb561b21444b562df7f4e486b0cbd8de17ec42.tar.gz
SERVER-5588 mapReduce and eval not recognized by mongos
Diffstat (limited to 'jstests/sharding/mapReduce.js')
-rw-r--r--jstests/sharding/mapReduce.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/jstests/sharding/mapReduce.js b/jstests/sharding/mapReduce.js
index a10535b7d39..55168036fa7 100644
--- a/jstests/sharding/mapReduce.js
+++ b/jstests/sharding/mapReduce.js
@@ -103,3 +103,20 @@ assert(out.results != 'undefined', "no results for inline");
out = db.srcNonSharded.mapReduce(map, reduce, { out: { replace: "mrReplace" + suffix, db: "mrShardOtherDB", sharded: true } });
verifyOutput(out);
+
+// test new name "mapReduce", SERVER-5588
+out = db.runCommand({
+ mapReduce: "srcNonSharded", // use new name mapReduce rather than mapreduce
+ map: map,
+ reduce: reduce,
+ out: "mrBasic" + "srcNonSharded",
+ });
+verifyOutput(out);
+
+out = db.runCommand({
+ mapReduce: "srcSharded", // use new name mapReduce rather than mapreduce
+ map: map,
+ reduce: reduce,
+ out: "mrBasic" + "srcSharded",
+ });
+verifyOutput(out);