0
0
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:
Dwight 2009-08-24 11:43:11 -04:00
commit bedc9f2ceb

View File

@ -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" ) );