summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/shutdown.h
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-04-15 16:42:02 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-04-17 08:48:46 -0400
commitc6b5caa6521bdbdb6b7affa200a29188b6414849 (patch)
treeb7e0a3254e5ad9718150527a4ff8ae67ff35771b /src/mongo/db/commands/shutdown.h
parent55ae7096d9b2b83996daf1de20df8f341294dc0d (diff)
downloadmongo-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.h13
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();
};