diff options
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_external_state_impl.cpp')
-rw-r--r-- | src/mongo/db/repl/replication_coordinator_external_state_impl.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp b/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp index 9d8162067fc..c34fe99d4f7 100644 --- a/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp +++ b/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp @@ -779,12 +779,8 @@ void ReplicationCoordinatorExternalStateImpl::_shardingOnTransitionToPrimaryHook const auto configsvrConnStr = Grid::get(opCtx)->shardRegistry()->getConfigShard()->getConnString(); - status = ShardingInitializationMongoD::get(opCtx)->updateShardIdentityConfigString( - opCtx, configsvrConnStr); - if (!status.isOK()) { - warning() << "error encountered while trying to update config connection string to " - << configsvrConnStr << causedBy(status); - } + ShardingInitializationMongoD::get(opCtx)->updateShardIdentityConfigString(opCtx, + configsvrConnStr); CatalogCacheLoader::get(_service).onStepUp(); ChunkSplitter::get(_service).onStepUp(); |