summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/commands/generic.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/mongo/db/commands/generic.cpp b/src/mongo/db/commands/generic.cpp
index d5bd5b0da1e..28394239931 100644
--- a/src/mongo/db/commands/generic.cpp
+++ b/src/mongo/db/commands/generic.cpp
@@ -297,31 +297,6 @@ public:
} listCommandsCmd;
-/* for testing purposes only */
-class CmdForceError : public BasicCommand {
-public:
- std::string help() const override {
- return "for testing purposes only. forces a user assertion exception";
- }
- virtual bool slaveOk() const {
- return true;
- }
- virtual bool supportsWriteConcern(const BSONObj& cmd) const override {
- return false;
- }
- virtual void addRequiredPrivileges(const std::string& dbname,
- const BSONObj& cmdObj,
- std::vector<Privilege>* out) {} // No auth required
- CmdForceError() : BasicCommand("forceerror") {}
- bool run(OperationContext* opCtx,
- const string& dbnamne,
- const BSONObj& cmdObj,
- BSONObjBuilder& result) {
- LastError::get(cc()).setLastError(10038, "forced error");
- return false;
- }
-} cmdForceError;
-
class GetLogCmd : public ErrmsgCommandDeprecated {
public:
GetLogCmd() : ErrmsgCommandDeprecated("getLog") {}