diff options
author | Eliot Horowitz <eliot@10gen.com> | 2014-10-27 08:51:52 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2014-10-27 08:51:52 -0400 |
commit | 30c251f3ea803729b7240c784cf6d897cc7a313e (patch) | |
tree | 4f1a7a855374d94fe45a934c9f52c4290eea1bc1 | |
parent | 8713e23181b9c702681bf4667475078bdaf39c46 (diff) | |
download | mongo-30c251f3ea803729b7240c784cf6d897cc7a313e.tar.gz |
in shell, db.adminCommand should take 2nd optional param like runCommand
-rw-r--r-- | src/mongo/shell/db.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/shell/db.js b/src/mongo/shell/db.js index 82cc4c325b6..d2f38a4a065 100644 --- a/src/mongo/shell/db.js +++ b/src/mongo/shell/db.js @@ -60,10 +60,10 @@ DB.prototype.runCommand = function( obj, extra ){ DB.prototype._dbCommand = DB.prototype.runCommand; -DB.prototype.adminCommand = function( obj ){ +DB.prototype.adminCommand = function( obj, extra ){ if ( this._name == "admin" ) - return this.runCommand( obj ); - return this.getSiblingDB( "admin" ).runCommand( obj ); + return this.runCommand( obj, extra ); + return this.getSiblingDB( "admin" ).runCommand( obj, extra ); } DB.prototype._adminCommand = DB.prototype.adminCommand; // alias old name |