diff options
author | Carolyn Duan <carolyn.duan@mongodb.com> | 2021-06-14 17:29:10 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-06-22 18:46:35 +0000 |
commit | e866ed8e645c034d773bc9de6dd4ec13ee769bea (patch) | |
tree | d1a4577986425d4c4f6caaf316400b3f086f16af /src/mongo/db/s/shard_local.cpp | |
parent | 7d07ffc36c97d632e59c351d15610e0ff2ffab42 (diff) | |
download | mongo-e866ed8e645c034d773bc9de6dd4ec13ee769bea.tar.gz |
SERVER-47828 Add getConfig* methods to avoid copying ReplSetConfig
through ReplicationCoordinatorImpl::getConfig()
Diffstat (limited to 'src/mongo/db/s/shard_local.cpp')
-rw-r--r-- | src/mongo/db/s/shard_local.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/s/shard_local.cpp b/src/mongo/db/s/shard_local.cpp index 506e21ffbf4..8edbdcd95ef 100644 --- a/src/mongo/db/s/shard_local.cpp +++ b/src/mongo/db/s/shard_local.cpp @@ -57,8 +57,7 @@ ShardLocal::ShardLocal(const ShardId& id) : Shard(id) { const ConnectionString ShardLocal::getConnString() const { return repl::ReplicationCoordinator::get(getGlobalServiceContext()) - ->getConfig() - .getConnectionString(); + ->getConfigConnectionString(); } std::shared_ptr<RemoteCommandTargeter> ShardLocal::getTargeter() const { |