diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-12-16 16:38:24 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-12-16 16:41:28 -0500 |
commit | c0fa67131864a2f2c5cf59f7cb83eb8612ab40b8 (patch) | |
tree | ce7abb68c8b2bc609b085597eb1d4747e5cbbb15 /jstests/mr4.js | |
parent | c2496691f11bab8bef8e9a1cbce0d356577d09cd (diff) | |
download | mongo-c0fa67131864a2f2c5cf59f7cb83eb8612ab40b8.tar.gz |
map/reduce no longer uses temp collections.
you have to specify out
SERVER-1837
Diffstat (limited to 'jstests/mr4.js')
-rw-r--r-- | jstests/mr4.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/mr4.js b/jstests/mr4.js index b14cdfef88e..78c8bce8953 100644 --- a/jstests/mr4.js +++ b/jstests/mr4.js @@ -23,7 +23,7 @@ r = function( key , values ){ return { count : total }; }; -res = t.mapReduce( m , r , { scope : { xx : 1 } } ); +res = t.mapReduce( m , r , { out : "mr4_out" , scope : { xx : 1 } } ); z = res.convertToSingleObject() assert.eq( 3 , Object.keySet( z ).length , "A1" ); @@ -34,7 +34,7 @@ assert.eq( 3 , z.c.count , "A4" ); res.drop(); -res = t.mapReduce( m , r , { scope : { xx : 2 } } ); +res = t.mapReduce( m , r , { scope : { xx : 2 } , out : "mr4_out" } ); z = res.convertToSingleObject() assert.eq( 3 , Object.keySet( z ).length , "A1" ); |