0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

handle null finalize in m/r SERVER-2199

This commit is contained in:
Eliot Horowitz 2011-01-16 00:51:19 -05:00
parent 1e2021f5d1
commit 418423388c

View File

@ -237,7 +237,7 @@ namespace mongo {
mapper.reset( new JSMapper( cmdObj["map"] ) );
reducer.reset( new JSReducer( cmdObj["reduce"] ) );
if ( cmdObj["finalize"].type() )
if ( cmdObj["finalize"].type() && cmdObj["finalize"].trueValue() )
finalizer.reset( new JSFinalizer( cmdObj["finalize"] ) );
if ( cmdObj["mapparams"].type() == Array ) {