summaryrefslogtreecommitdiff
path: root/src/mongo/shell
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2018-08-06 14:52:37 -0400
committerLouis Williams <louis.williams@mongodb.com>2018-08-13 13:10:34 -0400
commitf899002aade5d8fa1cbf0b1ad79e3088b8d4b050 (patch)
treeeb8442e167590ca9043e52e2dc7f980f3f5f1e21 /src/mongo/shell
parentf46d77c794e0da816ab4c93b0cb6ace2b771a428 (diff)
downloadmongo-f899002aade5d8fa1cbf0b1ad79e3088b8d4b050.tar.gz
SERVER-36208 Remove repairDatabase server command and shell helper
Diffstat (limited to 'src/mongo/shell')
-rw-r--r--src/mongo/shell/db.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mongo/shell/db.js b/src/mongo/shell/db.js
index 0304410caef..692205ff78e 100644
--- a/src/mongo/shell/db.js
+++ b/src/mongo/shell/db.js
@@ -583,15 +583,6 @@ var DB;
});
};
- /**
- Repair database.
-
- * @return Object returned has member ok set to true if operation succeeds, false otherwise.
- */
- DB.prototype.repairDatabase = function() {
- return this._dbCommand({repairDatabase: 1});
- };
-
DB.prototype.help = function() {
print("DB methods:");
print(
@@ -640,7 +631,6 @@ var DB;
print("\tdb.printShardingStatus()");
print("\tdb.printSlaveReplicationInfo()");
print("\tdb.dropUser(username)");
- print("\tdb.repairDatabase()");
print("\tdb.resetError()");
print(
"\tdb.runCommand(cmdObj) run a database command. if cmdObj is a string, turns it into {cmdObj: 1}");