summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/repl_set_command.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/repl_set_command.h')
-rw-r--r--src/mongo/db/repl/repl_set_command.h42
1 files changed, 24 insertions, 18 deletions
diff --git a/src/mongo/db/repl/repl_set_command.h b/src/mongo/db/repl/repl_set_command.h
index 0694eb28157..0b8c74c44b8 100644
--- a/src/mongo/db/repl/repl_set_command.h
+++ b/src/mongo/db/repl/repl_set_command.h
@@ -34,29 +34,35 @@
namespace mongo {
- class Status;
- class ClientBasic;
- class BSONObj;
+class Status;
+class ClientBasic;
+class BSONObj;
namespace repl {
- /**
- * Base class for repl set commands.
- */
- class ReplSetCommand : public Command {
- protected:
- ReplSetCommand(const char * s, bool show=false) : Command(s, show) { }
+/**
+ * Base class for repl set commands.
+ */
+class ReplSetCommand : public Command {
+protected:
+ ReplSetCommand(const char* s, bool show = false) : Command(s, show) {}
- bool slaveOk() const override { return true; }
+ bool slaveOk() const override {
+ return true;
+ }
- bool adminOnly() const override { return true; }
+ bool adminOnly() const override {
+ return true;
+ }
- bool isWriteCommandForConfigServer() const override { return false; }
+ bool isWriteCommandForConfigServer() const override {
+ return false;
+ }
- Status checkAuthForCommand(ClientBasic* client,
- const std::string& dbname,
- const BSONObj& cmdObj) override;
- };
+ Status checkAuthForCommand(ClientBasic* client,
+ const std::string& dbname,
+ const BSONObj& cmdObj) override;
+};
-} // namespace repl
-} // namespace mongo
+} // namespace repl
+} // namespace mongo