summaryrefslogtreecommitdiff
path: root/jstests/mr_outreduce.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/mr_outreduce.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/mr_outreduce.js')
-rw-r--r--jstests/mr_outreduce.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/mr_outreduce.js b/jstests/mr_outreduce.js
index e5878366fe4..87cba98d6d8 100644
--- a/jstests/mr_outreduce.js
+++ b/jstests/mr_outreduce.js
@@ -31,7 +31,7 @@ assert.eq( tos( expected ) , tos( res.convertToSingleObject() ) , "A" );
t.insert( { _id : 4 , a : [ 4 , 5 ] } )
out.insert( { _id : 10 , value : "5" } ) // this is a sentinal to make sure it wasn't killed
-res = t.mapReduce( m , r , { out : outName , outType : "reduce" , query : { _id : { $gt : 3 } } } )
+res = t.mapReduce( m , r , { out : { reduce : outName } , query : { _id : { $gt : 3 } } } )
expected["4"]++;
expected["5"] = 1