summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/mmap_v1/btree/btree_test_help.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/mmap_v1/btree/btree_test_help.h')
-rw-r--r--src/mongo/db/storage/mmap_v1/btree/btree_test_help.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/storage/mmap_v1/btree/btree_test_help.h b/src/mongo/db/storage/mmap_v1/btree/btree_test_help.h
index 5aeec516528..c5d48b48b3a 100644
--- a/src/mongo/db/storage/mmap_v1/btree/btree_test_help.h
+++ b/src/mongo/db/storage/mmap_v1/btree/btree_test_help.h
@@ -53,11 +53,11 @@ BSONObj simpleKey(char c, int n = 1);
*/
class TestHeadManager : public HeadManager {
public:
- virtual const RecordId getHead(OperationContext* txn) const {
+ virtual const RecordId getHead(OperationContext* opCtx) const {
return _head;
}
- virtual void setHead(OperationContext* txn, const RecordId newHead) {
+ virtual void setHead(OperationContext* opCtx, const RecordId newHead) {
_head = newHead;
}
@@ -100,8 +100,8 @@ public:
* does not do any cleanup, so constructing multiple trees over the same helper will
* cause leaked records.
*/
- ArtificialTreeBuilder(OperationContext* txn, BtreeLogicTestHelper<OnDiskFormat>* helper)
- : _txn(txn), _helper(helper) {}
+ ArtificialTreeBuilder(OperationContext* opCtx, BtreeLogicTestHelper<OnDiskFormat>* helper)
+ : _opCtx(opCtx), _helper(helper) {}
/**
* Causes the specified tree shape to be built on the associated helper and the tree's
@@ -143,7 +143,7 @@ private:
static std::string expectedKey(const char* spec);
- OperationContext* _txn;
+ OperationContext* _opCtx;
BtreeLogicTestHelper<OnDiskFormat>* _helper;
};