diff options
author | ADAM David Alan Martin <adam.martin@10gen.com> | 2019-05-17 15:41:29 -0400 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2019-05-17 15:41:29 -0400 |
commit | 6784f6568cc45fe25510e2d2393be57daffb5411 (patch) | |
tree | 1b3e93ce250ec2fbded3caea297e802b575c111f /src/mongo/db/repl/repl_set_config.h | |
parent | 88efdbf5b5c3b2c30b5b971a9adcaaa0a9f51797 (diff) | |
download | mongo-6784f6568cc45fe25510e2d2393be57daffb5411.tar.gz |
SERVER-40156 Replica sets support Split Horizons
Replica sets can now respond to `isMaster` requests with
different hostnames and ports, if contacted via alternate
names using TLS. The `horizons` field in replica set
member configurations can be used to control which
`HostAndPort` to reply with for which "horizon view" of
a replica set.
Diffstat (limited to 'src/mongo/db/repl/repl_set_config.h')
-rw-r--r-- | src/mongo/db/repl/repl_set_config.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/repl/repl_set_config.h b/src/mongo/db/repl/repl_set_config.h index c3de46ea033..53e5e3a0f33 100644 --- a/src/mongo/db/repl/repl_set_config.h +++ b/src/mongo/db/repl/repl_set_config.h @@ -160,6 +160,10 @@ public: return _members.end(); } + const std::vector<MemberConfig>& members() const { + return _members; + } + /** * Access a MemberConfig element by index. */ |