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/replication_coordinator.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/replication_coordinator.h')
-rw-r--r-- | src/mongo/db/repl/replication_coordinator.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/repl/replication_coordinator.h b/src/mongo/db/repl/replication_coordinator.h index 1e8f00b83a0..b9eee2a78a9 100644 --- a/src/mongo/db/repl/replication_coordinator.h +++ b/src/mongo/db/repl/replication_coordinator.h @@ -39,6 +39,7 @@ #include "mongo/db/repl/member_data.h" #include "mongo/db/repl/member_state.h" #include "mongo/db/repl/repl_settings.h" +#include "mongo/db/repl/split_horizon.h" #include "mongo/db/repl/sync_source_selector.h" #include "mongo/util/net/hostandport.h" #include "mongo/util/time_support.h" @@ -594,7 +595,8 @@ public: * Handles an incoming isMaster command for a replica set node. Should not be * called on a standalone node. */ - virtual void fillIsMasterForReplSet(IsMasterResponse* result) = 0; + virtual void fillIsMasterForReplSet(IsMasterResponse* result, + const SplitHorizon::Parameters& horizonParams) = 0; /** * Adds to "result" a description of the slaveInfo data structure used to map RIDs to their |