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/db/storage/mmap_v1/record_store_v1_repair_iterator.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/db/storage/mmap_v1/record_store_v1_repair_iterator.h')
-rw-r--r-- | src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.h b/src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.h index b65782cd27b..d95683a7c42 100644 --- a/src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.h +++ b/src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.h @@ -42,19 +42,19 @@ namespace mongo { */ class RecordStoreV1RepairCursor final : public RecordCursor { public: - RecordStoreV1RepairCursor(OperationContext* txn, const RecordStoreV1Base* recordStore); + RecordStoreV1RepairCursor(OperationContext* opCtx, const RecordStoreV1Base* recordStore); boost::optional<Record> next() final; - void invalidate(OperationContext* txn, const RecordId& dl); + void invalidate(OperationContext* opCtx, const RecordId& dl); void save() final {} bool restore() final { return true; } void detachFromOperationContext() final { - _txn = nullptr; + _opCtx = nullptr; } - void reattachToOperationContext(OperationContext* txn) final { - _txn = txn; + void reattachToOperationContext(OperationContext* opCtx) final { + _opCtx = opCtx; } // Explicitly not supporting fetcherForNext(). The expected use case for this class is a @@ -74,7 +74,7 @@ private: bool _advanceToNextValidExtent(); // transactional context for read locks. Not owned by us - OperationContext* _txn; + OperationContext* _opCtx; // Reference to the owning RecordStore. The store must not be deleted while there are // active iterators on it. |