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/mr_bigobject.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/mr_bigobject.js')
-rw-r--r-- | jstests/mr_bigobject.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/mr_bigobject.js b/jstests/mr_bigobject.js index 8224209379c..0f76e7b981e 100644 --- a/jstests/mr_bigobject.js +++ b/jstests/mr_bigobject.js @@ -18,13 +18,13 @@ r = function( k , v ){ return 1; } -assert.throws( function(){ t.mapReduce( m , r ); } , "emit should fail" ) +assert.throws( function(){ t.mapReduce( m , r , "mr_bigobject_out" ); } , "emit should fail" ) m = function(){ emit( 1 , this.s ); } -assert.eq( { 1 : 1 } , t.mapReduce( m , r ).convertToSingleObject() , "A1" ) +assert.eq( { 1 : 1 } , t.mapReduce( m , r , "mr_bigobject_out" ).convertToSingleObject() , "A1" ) r = function( k , v ){ total = 0; @@ -38,4 +38,4 @@ r = function( k , v ){ return total; } -assert.eq( { 1 : 10 * s.length } , t.mapReduce( m , r ).convertToSingleObject() , "A1" ) +assert.eq( { 1 : 10 * s.length } , t.mapReduce( m , r , "mr_bigobject_out" ).convertToSingleObject() , "A1" ) |