diff options
Diffstat (limited to 'src/mongo/s/mongos_main.cpp')
-rw-r--r-- | src/mongo/s/mongos_main.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mongo/s/mongos_main.cpp b/src/mongo/s/mongos_main.cpp index e3440eb151e..4dfdc0414b1 100644 --- a/src/mongo/s/mongos_main.cpp +++ b/src/mongo/s/mongos_main.cpp @@ -521,7 +521,10 @@ public: LOGV2(471693, "Updating the shard registry with confirmed replica set", "connectionString"_attr = connStr); - Grid::get(_serviceContext)->shardRegistry()->updateReplSetHosts(connStr); + Grid::get(_serviceContext) + ->shardRegistry() + ->updateReplSetHosts(connStr, + ShardRegistry::ConnectionStringUpdateType::kConfirmed); } catch (const ExceptionForCat<ErrorCategory::ShutdownError>& e) { LOGV2(471694, "Unable to update the shard registry with confirmed replica set", @@ -547,7 +550,10 @@ public: void onPossibleSet(const State& state) noexcept final { try { - Grid::get(_serviceContext)->shardRegistry()->updateReplSetHosts(state.connStr); + Grid::get(_serviceContext) + ->shardRegistry() + ->updateReplSetHosts(state.connStr, + ShardRegistry::ConnectionStringUpdateType::kPossible); } catch (const DBException& ex) { LOGV2_DEBUG(22849, 2, |