summaryrefslogtreecommitdiff
path: root/src/mongo/shell/db.js
diff options
context:
space:
mode:
authormatt dannenberg <matt.dannenberg@10gen.com>2013-10-31 15:48:32 -0400
committermatt dannenberg <matt.dannenberg@10gen.com>2013-10-31 17:19:20 -0400
commit864fd719213c88720af58d17efb3ec969c87b4eb (patch)
tree324dcc39b9216798de6b491c3a8b72497b5951f8 /src/mongo/shell/db.js
parenteab2644c221206c121ac1ab93fcf95c8100f4ff3 (diff)
downloadmongo-864fd719213c88720af58d17efb3ec969c87b4eb.tar.gz
SERVER-11507 drop(User|Role)sFromDatabase renamed to dropAll(User|Role)sFromDatabase
Diffstat (limited to 'src/mongo/shell/db.js')
-rw-r--r--src/mongo/shell/db.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/shell/db.js b/src/mongo/shell/db.js
index e5c6e574529..6372e353c84 100644
--- a/src/mongo/shell/db.js
+++ b/src/mongo/shell/db.js
@@ -1157,7 +1157,7 @@ DB.prototype._removeUserV1 = function(username, writeConcern) {
}
DB.prototype.dropAllUsers = function(writeConcern) {
- var res = this.runCommand({dropUsersFromDatabase:1,
+ var res = this.runCommand({dropAllUsersFromDatabase:1,
writeConcern: writeConcern ? writeConcern : _defaultWriteConcern});
if (!res.ok) {
@@ -1303,7 +1303,7 @@ DB.prototype.dropRole = function(name, writeConcern) {
};
DB.prototype.dropAllRoles = function(writeConcern) {
- var res = this.runCommand({dropRolesFromDatabase:1,
+ var res = this.runCommand({dropAllRolesFromDatabase:1,
writeConcern: writeConcern ? writeConcern : _defaultWriteConcern});
if (!res.ok) {