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/drop_indexes.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/drop_indexes.cpp')
-rw-r--r-- | src/mongo/db/commands/drop_indexes.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/commands/drop_indexes.cpp b/src/mongo/db/commands/drop_indexes.cpp index e970705d9f1..42a16dad2ab 100644 --- a/src/mongo/db/commands/drop_indexes.cpp +++ b/src/mongo/db/commands/drop_indexes.cpp @@ -64,7 +64,7 @@ using std::stringstream; using std::vector; /* "dropIndexes" is now the preferred form - "deleteIndexes" deprecated */ -class CmdDropIndexes : public Command { +class CmdDropIndexes : public BasicCommand { public: virtual bool slaveOk() const { return false; @@ -83,7 +83,7 @@ public: out->push_back(Privilege(parseResourcePattern(dbname, cmdObj), actions)); } - CmdDropIndexes() : Command("dropIndexes", "deleteIndexes") {} + CmdDropIndexes() : BasicCommand("dropIndexes", "deleteIndexes") {} bool run(OperationContext* opCtx, const string& dbname, const BSONObj& jsobj, @@ -95,7 +95,7 @@ public: } cmdDropIndexes; -class CmdReIndex : public Command { +class CmdReIndex : public BasicCommand { public: virtual bool slaveOk() const { return true; @@ -113,7 +113,7 @@ public: actions.addAction(ActionType::reIndex); out->push_back(Privilege(parseResourcePattern(dbname, cmdObj), actions)); } - CmdReIndex() : Command("reIndex") {} + CmdReIndex() : BasicCommand("reIndex") {} bool run(OperationContext* opCtx, const string& dbname, |