shell multi-update option and test SERVER-268

This commit is contained in:
Eliot Horowitz
2009-10-22 09:43:31 -04:00
parent e8466f3dc5
commit 1bc6fff4e6
3 changed files with 32 additions and 3 deletions

View File

@@ -225,9 +225,10 @@ namespace mongo {
string ns = c.toString( argv[0] );
bool upsert = argc > 3 && c.toBoolean( argv[3] );
bool multi = argc > 4 && c.toBoolean( argv[4] );
try {
conn->update( ns , c.toObject( argv[1] ) , c.toObject( argv[2] ) , upsert );
conn->update( ns , c.toObject( argv[1] ) , c.toObject( argv[2] ) , upsert , multi );
return JS_TRUE;
}
catch ( ... ){