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:
parent
1e2021f5d1
commit
418423388c
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user