diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-10-22 09:43:31 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-10-22 09:43:31 -0400 |
commit | 1bc6fff4e69d93f6f804a6df8d48dbf3469a6148 (patch) | |
tree | cd13997c42de8bb7503fcd2f7072c9128b85c152 /shell | |
parent | e8466f3dc5d2e8c7db7f1749d25d587d0ec0133e (diff) | |
download | mongo-1bc6fff4e69d93f6f804a6df8d48dbf3469a6148.tar.gz |
shell multi-update option and test SERVER-268
Diffstat (limited to 'shell')
-rw-r--r-- | shell/collection.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/collection.js b/shell/collection.js index 3688b6a553d..8ee12f6bb24 100644 --- a/shell/collection.js +++ b/shell/collection.js @@ -147,11 +147,11 @@ DBCollection.prototype.remove = function( t ){ this._mongo.remove( this._fullName , this._massageObject( t ) ); } -DBCollection.prototype.update = function( query , obj , upsert ){ +DBCollection.prototype.update = function( query , obj , upsert , multi ){ assert( query , "need a query" ); assert( obj , "need an object" ); this._validateObject( obj ); - this._mongo.update( this._fullName , query , obj , upsert ? true : false ); + this._mongo.update( this._fullName , query , obj , upsert ? true : false , multi ? true : false ); } DBCollection.prototype.save = function( obj ){ |