diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-04-15 16:42:02 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-04-17 08:48:46 -0400 |
commit | c6b5caa6521bdbdb6b7affa200a29188b6414849 (patch) | |
tree | b7e0a3254e5ad9718150527a4ff8ae67ff35771b /src/mongo/db/commands/shutdown.h | |
parent | 55ae7096d9b2b83996daf1de20df8f341294dc0d (diff) | |
download | mongo-c6b5caa6521bdbdb6b7affa200a29188b6414849.tar.gz |
SERVER-18080 Move cluster commands out of mongoscore
That way they only need to be linked when we link the actual mongos
executable and not as part of tests.
Diffstat (limited to 'src/mongo/db/commands/shutdown.h')
-rw-r--r-- | src/mongo/db/commands/shutdown.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/mongo/db/commands/shutdown.h b/src/mongo/db/commands/shutdown.h index b041eb78449..0adef08311d 100644 --- a/src/mongo/db/commands/shutdown.h +++ b/src/mongo/db/commands/shutdown.h @@ -37,6 +37,8 @@ namespace mongo { class CmdShutdown : public Command { public: + CmdShutdown() : Command("shutdown") { } + virtual bool requiresAuth() { return true; } virtual bool adminOnly() const { return true; } virtual bool localHostOnlyIfNoAuth(const BSONObj& cmdObj) { return true; } @@ -47,15 +49,8 @@ namespace mongo { const BSONObj& cmdObj, std::vector<Privilege>* out); virtual bool isWriteCommandForConfigServer() const { return false; } - virtual void help( std::stringstream& help ) const; - CmdShutdown() : Command("shutdown") {} - bool run(OperationContext* txn, const std::string& dbname, - BSONObj& cmdObj, - int options, - std::string& errmsg, - BSONObjBuilder& result, - bool fromRepl); - private: + + protected: static void shutdownHelper(); }; |