diff options
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/db/commands/parameters.cpp | 1 | ||||
-rw-r--r-- | src/mongo/db/repl/replication_info.cpp | 3 | ||||
-rw-r--r-- | src/mongo/s/commands/cluster_is_master_cmd.cpp | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/commands/parameters.cpp b/src/mongo/db/commands/parameters.cpp index 32c4b7d535b..1d2b49c8b53 100644 --- a/src/mongo/db/commands/parameters.cpp +++ b/src/mongo/db/commands/parameters.cpp @@ -650,5 +650,6 @@ private: } automationServiceDescriptor; constexpr decltype(AutomationServiceDescriptor::kName) AutomationServiceDescriptor::kName; +constexpr decltype(AutomationServiceDescriptor::kMaxSize) AutomationServiceDescriptor::kMaxSize; } } diff --git a/src/mongo/db/repl/replication_info.cpp b/src/mongo/db/repl/replication_info.cpp index d79f48de6d4..be4ddb9e3e4 100644 --- a/src/mongo/db/repl/replication_info.cpp +++ b/src/mongo/db/repl/replication_info.cpp @@ -258,7 +258,8 @@ public: result.append("readOnly", storageGlobalParams.readOnly); const auto parameter = mapFindWithDefault(ServerParameterSet::getGlobal()->getMap(), - "automationServiceDescriptor"); + "automationServiceDescriptor", + static_cast<ServerParameter*>(nullptr)); if (parameter) parameter->append(txn, result, "automationServiceDescriptor"); diff --git a/src/mongo/s/commands/cluster_is_master_cmd.cpp b/src/mongo/s/commands/cluster_is_master_cmd.cpp index faea3ad66e7..191e04e7f54 100644 --- a/src/mongo/s/commands/cluster_is_master_cmd.cpp +++ b/src/mongo/s/commands/cluster_is_master_cmd.cpp @@ -81,7 +81,8 @@ public: result.append("minWireVersion", WireSpec::instance().minWireVersionIncoming); const auto parameter = mapFindWithDefault(ServerParameterSet::getGlobal()->getMap(), - "automationServiceDescriptor"); + "automationServiceDescriptor", + static_cast<ServerParameter*>(nullptr)); if (parameter) parameter->append(txn, result, "automationServiceDescriptor"); |