summaryrefslogtreecommitdiff
path: root/src/mongo/db/server_options.h
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2019-06-10 14:47:21 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2019-06-10 14:47:21 -0400
commit4ed6a26c13f3edb8187134be15252c87d42c3560 (patch)
tree7381ccd4a331c7e7734d0112fae5551bfa78f7ef /src/mongo/db/server_options.h
parent9b17e22bd79ca83e4e29a7ff876a2d3cea715636 (diff)
downloadmongo-4ed6a26c13f3edb8187134be15252c87d42c3560.tar.gz
SERVER-40928 mongocryptd --help output list incorrect default port
Diffstat (limited to 'src/mongo/db/server_options.h')
-rw-r--r--src/mongo/db/server_options.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mongo/db/server_options.h b/src/mongo/db/server_options.h
index c8cc07b444e..14237da05e2 100644
--- a/src/mongo/db/server_options.h
+++ b/src/mongo/db/server_options.h
@@ -47,10 +47,13 @@ struct ServerGlobalParams {
std::string cwd; // cwd of when process started
int port = DefaultDBPort; // --port
- enum { DefaultDBPort = 27017, ConfigServerPort = 27019, ShardServerPort = 27018 };
- bool isDefaultPort() const {
- return port == DefaultDBPort;
- }
+ enum {
+ ConfigServerPort = 27019,
+ CryptDServerPort = 27020,
+ DefaultDBPort = 27017,
+ ShardServerPort = 27018,
+ };
+
static std::string getPortSettingHelpText();
std::vector<std::string> bind_ips; // --bind_ip