summaryrefslogtreecommitdiff
path: root/src/mongo/client/streamable_replica_set_monitor.cpp
diff options
context:
space:
mode:
authorAmirsaman Memaripour <amirsaman.memaripour@mongodb.com>2020-10-22 17:40:11 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-10-23 04:09:49 +0000
commit52d60041fcc406352a6dfcf981b9001f886b1230 (patch)
treeb0c4dece3058d15b0fd10ff203e53128340d31a9 /src/mongo/client/streamable_replica_set_monitor.cpp
parentdf53ba83283c47d4c0668cb19310e1a23d52901c (diff)
downloadmongo-52d60041fcc406352a6dfcf981b9001f886b1230.tar.gz
SERVER-50511 Change local variables and functions in dbclient files
Diffstat (limited to 'src/mongo/client/streamable_replica_set_monitor.cpp')
-rw-r--r--src/mongo/client/streamable_replica_set_monitor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/client/streamable_replica_set_monitor.cpp b/src/mongo/client/streamable_replica_set_monitor.cpp
index 204c33d4c64..3858293831f 100644
--- a/src/mongo/client/streamable_replica_set_monitor.cpp
+++ b/src/mongo/client/streamable_replica_set_monitor.cpp
@@ -376,7 +376,7 @@ boost::optional<std::vector<HostAndPort>> StreamableReplicaSetMonitor::_getHosts
return _getHosts(_currentTopology(), criteria);
}
-HostAndPort StreamableReplicaSetMonitor::getMasterOrUassert() {
+HostAndPort StreamableReplicaSetMonitor::getPrimaryOrUassert() {
return getHostOrRefresh(kPrimaryOnlyReadPreference).get();
}