summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/cpuprofile.cpp
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2018-01-30 12:54:32 -0500
committerBilly Donahue <billy.donahue@mongodb.com>2018-02-01 16:56:09 -0500
commit62ca1bcdd3dcc634a6fa91204b0f0941eb76399e (patch)
tree8e972fb8cc1d636549e85a5f347406623b726463 /src/mongo/db/commands/cpuprofile.cpp
parent3a5d38b81eac17e6be7b2d6813ca4c2b8ab619a3 (diff)
downloadmongo-62ca1bcdd3dcc634a6fa91204b0f0941eb76399e.tar.gz
SERVER-32958 small changes to remaining Command member signatures.
Diffstat (limited to 'src/mongo/db/commands/cpuprofile.cpp')
-rw-r--r--src/mongo/db/commands/cpuprofile.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/db/commands/cpuprofile.cpp b/src/mongo/db/commands/cpuprofile.cpp
index 396e396856d..ffe9704fa8c 100644
--- a/src/mongo/db/commands/cpuprofile.cpp
+++ b/src/mongo/db/commands/cpuprofile.cpp
@@ -74,15 +74,15 @@ public:
AllowedOnSecondary secondaryAllowed() const override {
return AllowedOnSecondary::kAlways;
}
- virtual bool adminOnly() const {
+ bool adminOnly() const override {
return true;
}
- virtual bool localHostOnlyIfNoAuth() {
+ bool localHostOnlyIfNoAuth() const override {
return true;
}
- virtual void addRequiredPrivileges(const std::string& dbname,
- const BSONObj& cmdObj,
- std::vector<Privilege>* out) {
+ void addRequiredPrivileges(const std::string& dbname,
+ const BSONObj& cmdObj,
+ std::vector<Privilege>* out) override {
ActionSet actions;
actions.addAction(ActionType::cpuProfiler);
out->push_back(Privilege(ResourcePattern::forClusterResource(), actions));
@@ -91,7 +91,7 @@ public:
// This is an abuse of the global dbmutex. We only really need to
// ensure that only one cpuprofiler command runs at once; it would
// be fine for it to run concurrently with other operations.
- virtual bool supportsWriteConcern(const BSONObj& cmd) const override {
+ bool supportsWriteConcern(const BSONObj& cmd) const override {
return false;
}
};