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/s/query/cluster_client_cursor_impl.h | |
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/s/query/cluster_client_cursor_impl.h')
-rw-r--r-- | src/mongo/s/query/cluster_client_cursor_impl.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/s/query/cluster_client_cursor_impl.h b/src/mongo/s/query/cluster_client_cursor_impl.h index 929cf655849..de4e09d0950 100644 --- a/src/mongo/s/query/cluster_client_cursor_impl.h +++ b/src/mongo/s/query/cluster_client_cursor_impl.h @@ -50,7 +50,7 @@ class ClusterClientCursorGuard final { MONGO_DISALLOW_COPYING(ClusterClientCursorGuard); public: - ClusterClientCursorGuard(OperationContext* txn, std::unique_ptr<ClusterClientCursor> ccc); + ClusterClientCursorGuard(OperationContext* opCtx, std::unique_ptr<ClusterClientCursor> ccc); /** * If a cursor is owned, safely destroys the cursor, cleaning up remote cursor state if @@ -74,7 +74,7 @@ public: std::unique_ptr<ClusterClientCursor> releaseCursor(); private: - OperationContext* _txn; + OperationContext* _opCtx; std::unique_ptr<ClusterClientCursor> _ccc; }; @@ -85,7 +85,7 @@ public: /** * Constructs a CCC whose safe cleanup is ensured by an RAII object. */ - static ClusterClientCursorGuard make(OperationContext* txn, + static ClusterClientCursorGuard make(OperationContext* opCtx, executor::TaskExecutor* executor, ClusterClientCursorParams&& params); @@ -95,9 +95,9 @@ public: ClusterClientCursorImpl(std::unique_ptr<RouterStageMock> root, ClusterClientCursorParams&& params); - StatusWith<ClusterQueryResult> next(OperationContext* txn) final; + StatusWith<ClusterQueryResult> next(OperationContext* opCtx) final; - void kill(OperationContext* txn) final; + void kill(OperationContext* opCtx) final; bool isTailable() const final; |