diff options
author | Maria van Keulen <maria@mongodb.com> | 2017-03-07 12:00:08 -0500 |
---|---|---|
committer | Maria van Keulen <maria@mongodb.com> | 2017-03-07 12:00:08 -0500 |
commit | 589a5c169ced8f6e9ddcd3d182ae1b75db6b7d79 (patch) | |
tree | c7a090ffdd56a91ae677e2492c61b820af44f964 /src/mongo/client/remote_command_targeter_rs.cpp | |
parent | 3cba97198638df3750e3b455e2ad57af7ee536ae (diff) | |
download | mongo-589a5c169ced8f6e9ddcd3d182ae1b75db6b7d79.tar.gz |
SERVER-27938 Rename all OperationContext variables to opCtx
This commit is an automated rename of all whole word instances of txn,
_txn, and txnPtr to opCtx, _opCtx, and opCtxPtr, respectively in all
.cpp and .h files in src/mongo.
Diffstat (limited to 'src/mongo/client/remote_command_targeter_rs.cpp')
-rw-r--r-- | src/mongo/client/remote_command_targeter_rs.cpp | 6 |
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; } |