mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
switch machines
This commit is contained in:
parent
93b8ffe183
commit
b9666b4db1
@ -65,7 +65,10 @@ public:
|
||||
strcpy(codeCopy,code);
|
||||
func = JavaJS->functionCreate( code );
|
||||
minilex.grabVariables(codeCopy, fields);
|
||||
fullObject = fields.count("fullObject") > 0;
|
||||
// if user references db, eg db.foo.save(obj),
|
||||
// we make sure we have the whole thing.
|
||||
fullObject = fields.count("fullObject") +
|
||||
fields.count("db") > 0;
|
||||
nFields = fields.size();
|
||||
}
|
||||
|
||||
|
@ -404,6 +404,8 @@ bool dbEval(JSObj& cmd, JSObjBuilder& result) {
|
||||
Element args = cmd.findElement("args");
|
||||
if( args.type() == Array ) {
|
||||
JSObj eo = args.embeddedObject();
|
||||
cout << "args:" << eo.toString() << endl;
|
||||
cout << "code:\n" << code << endl;
|
||||
s.setObject("args", eo);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user