mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
Merge branch 'master' of git@github.com:mongodb/mongo
This commit is contained in:
commit
bedc9f2ceb
@ -1169,7 +1169,9 @@ namespace mongo {
|
||||
|
||||
s->setObject( "obj" , obj , true );
|
||||
s->setNumber( "n" , n - 1 );
|
||||
uassert( "reduce invoke failed" , s->invoke( f , BSONObj() , 0 , true ) == 0 );
|
||||
if ( s->invoke( f , BSONObj() , 0 , true ) ){
|
||||
throw UserException( (string)"reduce invoke failed: " + s->getError() );
|
||||
}
|
||||
}
|
||||
|
||||
result.appendArray( "retval" , s->getObject( "$arr" ) );
|
||||
|
Loading…
Reference in New Issue
Block a user