diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-06-22 15:25:37 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2017-07-13 16:53:12 -0400 |
commit | 1f21d889f89cf1338ff198264d63b029314eef7a (patch) | |
tree | 741021d15b7b2149b28c8eb84369350d8c9a34d8 /src/mongo/db/commands/test_commands.cpp | |
parent | a6cc94d141f13feff33178a769c81282c7bc0170 (diff) | |
download | mongo-1f21d889f89cf1338ff198264d63b029314eef7a.tar.gz |
SERVER-29731 convert all direct subclasses of Command to BasicCommand
Diffstat (limited to 'src/mongo/db/commands/test_commands.cpp')
-rw-r--r-- | src/mongo/db/commands/test_commands.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mongo/db/commands/test_commands.cpp b/src/mongo/db/commands/test_commands.cpp index 618e655fdce..ffc7bf48466 100644 --- a/src/mongo/db/commands/test_commands.cpp +++ b/src/mongo/db/commands/test_commands.cpp @@ -56,9 +56,9 @@ using std::string; using std::stringstream; /* For testing only, not for general use. Enabled via command-line */ -class GodInsert : public Command { +class GodInsert : public BasicCommand { public: - GodInsert() : Command("godinsert") {} + GodInsert() : BasicCommand("godinsert") {} virtual bool adminOnly() const { return false; } @@ -108,7 +108,7 @@ public: }; /* for diagnostic / testing purposes. Enabled via command line. */ -class CmdSleep : public Command { +class CmdSleep : public BasicCommand { public: virtual bool supportsWriteConcern(const BSONObj& cmd) const override { return false; @@ -148,7 +148,7 @@ public: opCtx->sleepFor(Milliseconds(millis)); } - CmdSleep() : Command("sleep") {} + CmdSleep() : BasicCommand("sleep") {} bool run(OperationContext* opCtx, const string& ns, const BSONObj& cmdObj, @@ -199,9 +199,9 @@ public: }; // Testing only, enabled via command-line. -class CapTrunc : public Command { +class CapTrunc : public BasicCommand { public: - CapTrunc() : Command("captrunc") {} + CapTrunc() : BasicCommand("captrunc") {} virtual bool slaveOk() const { return false; } @@ -275,9 +275,9 @@ public: }; // Testing-only, enabled via command line. -class EmptyCapped : public Command { +class EmptyCapped : public BasicCommand { public: - EmptyCapped() : Command("emptycapped") {} + EmptyCapped() : BasicCommand("emptycapped") {} virtual bool slaveOk() const { return false; } |