diff options
author | Ryan Timmons <ryan.timmons@mongodb.com> | 2020-02-12 17:54:40 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-02-12 23:06:59 +0000 |
commit | 994fdd99bb6adb2cf9c7dd4061c2035188c2c8da (patch) | |
tree | f145122195ba7977144a6b7e8ae35d14d5f43c5b /src/mongo/db/repl/check_quorum_for_config_change.cpp | |
parent | 4085fa11f08ba092294304346b3d07f6e998b878 (diff) | |
download | mongo-994fdd99bb6adb2cf9c7dd4061c2035188c2c8da.tar.gz |
SERVER-29030 Announce new primary via heartbeat requests
Diffstat (limited to 'src/mongo/db/repl/check_quorum_for_config_change.cpp')
-rw-r--r-- | src/mongo/db/repl/check_quorum_for_config_change.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/repl/check_quorum_for_config_change.cpp b/src/mongo/db/repl/check_quorum_for_config_change.cpp index 3faf2b20fa5..8fad659a585 100644 --- a/src/mongo/db/repl/check_quorum_for_config_change.cpp +++ b/src/mongo/db/repl/check_quorum_for_config_change.cpp @@ -92,6 +92,8 @@ std::vector<RemoteCommandRequest> QuorumChecker::getRequests() const { if (isInitialConfig) { hbArgs.setCheckEmpty(); } + // hbArgs allows (but doesn't require) us to pass the current primary id as an optimization, + // but it is not readily available within QuorumChecker. hbArgs.setSenderHost(myConfig.getHostAndPort()); hbArgs.setSenderId(myConfig.getId().getData()); hbArgs.setTerm(_term); |