summaryrefslogtreecommitdiff
path: root/jstests/mr5.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-12-16 16:38:24 -0500
committerEliot Horowitz <eliot@10gen.com>2010-12-16 16:41:28 -0500
commitc0fa67131864a2f2c5cf59f7cb83eb8612ab40b8 (patch)
treece7abb68c8b2bc609b085597eb1d4747e5cbbb15 /jstests/mr5.js
parentc2496691f11bab8bef8e9a1cbce0d356577d09cd (diff)
downloadmongo-c0fa67131864a2f2c5cf59f7cb83eb8612ab40b8.tar.gz
map/reduce no longer uses temp collections.
you have to specify out SERVER-1837
Diffstat (limited to 'jstests/mr5.js')
-rw-r--r--jstests/mr5.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/mr5.js b/jstests/mr5.js
index bbac3fec4f3..50a63d1d55b 100644
--- a/jstests/mr5.js
+++ b/jstests/mr5.js
@@ -25,7 +25,7 @@ r = function( k , v ){
return { stats : stats , total : total }
}
-res = t.mapReduce( m , r , { scope : { xx : 1 } } );
+res = t.mapReduce( m , r , { out : "mr5_out" , scope : { xx : 1 } } );
//res.find().forEach( printjson )
z = res.convertToSingleObject()
@@ -44,7 +44,7 @@ m = function(){
-res = t.mapReduce( m , r , { scope : { xx : 1 } } );
+res = t.mapReduce( m , r , { out : "mr5_out" , scope : { xx : 1 } } );
//res.find().forEach( printjson )
z = res.convertToSingleObject()