summaryrefslogtreecommitdiff
path: root/src/mongo/client/remote_command_targeter_rs.cpp
diff options
context:
space:
mode:
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 59ae0d9cdbf..0bf8bedb837 100644
--- a/src/mongo/client/remote_command_targeter_rs.cpp
+++ b/src/mongo/client/remote_command_targeter_rs.cpp
@@ -65,12 +65,12 @@ StatusWith<HostAndPort> RemoteCommandTargeterRS::findHostWithMaxWait(
return _rsMonitor->getHostOrRefresh(readPref, maxWait);
}
-StatusWith<HostAndPort> RemoteCommandTargeterRS::findHost(OperationContext* txn,
+StatusWith<HostAndPort> RemoteCommandTargeterRS::findHost(OperationContext* opCtx,
const ReadPreferenceSetting& readPref) {
- auto clock = txn->getServiceContext()->getFastClockSource();
+ auto clock = opCtx->getServiceContext()->getFastClockSource();
auto startDate = clock->now();
while (true) {
- const auto interruptStatus = txn->checkForInterruptNoAssert();
+ const auto interruptStatus = opCtx->checkForInterruptNoAssert();
if (!interruptStatus.isOK()) {
return interruptStatus;
}