summaryrefslogtreecommitdiff
path: root/src/mongo/client/remote_command_targeter_rs.cpp
diff options
context:
space:
mode:
authorTyler Seip <Tyler.Seip@mongodb.com>2021-03-19 18:28:46 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-03-23 17:37:22 +0000
commit8c463d0aa0cce19073210d274dcbb04c156dc802 (patch)
tree831640a2819370a0dc3641b02da5adad23e651a7 /src/mongo/client/remote_command_targeter_rs.cpp
parentf447e57dd2c5dbb39feef9cfe071ff1cc1de54d5 (diff)
downloadmongo-8c463d0aa0cce19073210d274dcbb04c156dc802.tar.gz
SERVER-53230: Rename cancelation -> cancellation everywhere
Diffstat (limited to 'src/mongo/client/remote_command_targeter_rs.cpp')
-rw-r--r--src/mongo/client/remote_command_targeter_rs.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/client/remote_command_targeter_rs.cpp b/src/mongo/client/remote_command_targeter_rs.cpp
index 8c3c66c099d..f1b99732569 100644
--- a/src/mongo/client/remote_command_targeter_rs.cpp
+++ b/src/mongo/client/remote_command_targeter_rs.cpp
@@ -65,12 +65,12 @@ ConnectionString RemoteCommandTargeterRS::connectionString() {
}
SemiFuture<HostAndPort> RemoteCommandTargeterRS::findHost(const ReadPreferenceSetting& readPref,
- const CancelationToken& cancelToken) {
+ const CancellationToken& cancelToken) {
return _rsMonitor->getHostOrRefresh(readPref, cancelToken);
}
SemiFuture<std::vector<HostAndPort>> RemoteCommandTargeterRS::findHosts(
- const ReadPreferenceSetting& readPref, const CancelationToken& cancelToken) {
+ const ReadPreferenceSetting& readPref, const CancellationToken& cancelToken) {
return _rsMonitor->getHostsOrRefresh(readPref, cancelToken);
}
@@ -86,7 +86,7 @@ StatusWith<HostAndPort> RemoteCommandTargeterRS::findHost(OperationContext* opCt
// See comment in remote_command_targeter.h for details.
bool maxTimeMsLesser = (opCtx->getRemainingMaxTimeMillis() < Milliseconds(Seconds(20)));
auto swHostAndPort =
- _rsMonitor->getHostOrRefresh(readPref, opCtx->getCancelationToken()).getNoThrow(opCtx);
+ _rsMonitor->getHostOrRefresh(readPref, opCtx->getCancellationToken()).getNoThrow(opCtx);
if (maxTimeMsLesser && swHostAndPort.getStatus() == ErrorCodes::FailedToSatisfyReadPreference) {
return Status(ErrorCodes::MaxTimeMSExpired, "operation timed out");