diff options
author | Matthew Russotto <matthew.russotto@mongodb.com> | 2022-08-16 15:38:50 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-16 21:03:56 +0000 |
commit | 0c0f80372c2adee56c16c106ec2711d39ea6b45f (patch) | |
tree | bf8ed342d2c6299fd6003c77692994aa94455926 /src/mongo/db/repl/replication_coordinator_external_state_impl.cpp | |
parent | 6e72559c750956215fdf9db5753265a0e74fce8d (diff) | |
download | mongo-0c0f80372c2adee56c16c106ec2711d39ea6b45f.tar.gz |
SERVER-66050 findSelfInConfig should attempt fast path for every HostAndPort before trying slow path
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 | 10 |
1 files changed, 10 insertions, 0 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 283ed2a8f31..4b65b140249 100644 --- a/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp +++ b/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp @@ -787,6 +787,16 @@ bool ReplicationCoordinatorExternalStateImpl::isSelf(const HostAndPort& host, Se return repl::isSelf(host, ctx); } +bool ReplicationCoordinatorExternalStateImpl::isSelfFastPath(const HostAndPort& host) { + return repl::isSelfFastPath(host); +} + +bool ReplicationCoordinatorExternalStateImpl::isSelfSlowPath(const HostAndPort& host, + ServiceContext* ctx, + Milliseconds timeout) { + return repl::isSelfSlowPath(host, ctx, timeout); +} + HostAndPort ReplicationCoordinatorExternalStateImpl::getClientHostAndPort( const OperationContext* opCtx) { return HostAndPort(opCtx->getClient()->clientAddress(true)); |