- Added option for read only objects in JS invoke method

- map function uses RO input object which speeds up MR quite a bit
- added a flag in RO objects so that the BSON can be used as is when converting back
This commit is contained in:
agirbal
2011-05-25 17:41:40 -07:00
parent 559f103ea0
commit 5cc563b581
5 changed files with 21 additions and 10 deletions

View File

@@ -417,7 +417,7 @@ namespace mongo {
/**
* @return 0 on success
*/
int invoke( ScriptingFunction func , const BSONObj* args, const BSONObj* recv, int timeoutMs , bool ignoreReturn ) {
int invoke( ScriptingFunction func , const BSONObj* args, const BSONObj* recv, int timeoutMs , bool ignoreReturn, bool readOnlyArgs, bool readOnlyRecv ) {
return _real->invoke( func , args , recv, timeoutMs , ignoreReturn );
}