summaryrefslogtreecommitdiff
path: root/src/mongo/s/mongos_options.h
diff options
context:
space:
mode:
authorShaun Verch <shaun.verch@10gen.com>2013-09-18 14:02:36 -0400
committerShaun Verch <shaun.verch@10gen.com>2013-10-04 16:58:54 -0400
commit6fc951d492881a32754bc3e38e8b5eca78929197 (patch)
tree73c2afe3120a8a87cf3bc8379e53461b2cf05b1e /src/mongo/s/mongos_options.h
parent99372153dfe9dd9251e49371d872b5f27dfd6f2c (diff)
downloadmongo-6fc951d492881a32754bc3e38e8b5eca78929197.tar.gz
SERVER-8510 Get rid of CmdLine struct and use new option handling style
Diffstat (limited to 'src/mongo/s/mongos_options.h')
-rw-r--r--src/mongo/s/mongos_options.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/mongo/s/mongos_options.h b/src/mongo/s/mongos_options.h
index e9f266b8207..9784591f8f3 100644
--- a/src/mongo/s/mongos_options.h
+++ b/src/mongo/s/mongos_options.h
@@ -17,6 +17,7 @@
#pragma once
#include "mongo/base/status.h"
+#include "mongo/db/server_options.h"
namespace mongo {
@@ -26,5 +27,25 @@ namespace mongo {
namespace moe = mongo::optionenvironment;
+ struct MongosGlobalParams {
+ std::vector<std::string> configdbs;
+ bool upgrade;
+
+ MongosGlobalParams() :
+ upgrade(false)
+ { }
+ };
+
+ extern MongosGlobalParams mongosGlobalParams;
+
Status addMongosOptions(moe::OptionSection* options);
+
+ void printMongosHelp(const moe::OptionSection& options);
+
+ Status handlePreValidationMongosOptions(const moe::Environment& params,
+ const std::vector<std::string>& args);
+
+ Status storeMongosOptions(const moe::Environment& params, const std::vector<std::string>& args);
+
+ bool isMongos();
}