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/exec/near.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/db/exec/near.cpp')
-rw-r--r-- | src/mongo/db/exec/near.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/exec/near.cpp b/src/mongo/db/exec/near.cpp index e3f0ed7781d..31825995c0e 100644 --- a/src/mongo/db/exec/near.cpp +++ b/src/mongo/db/exec/near.cpp @@ -41,12 +41,12 @@ using std::unique_ptr; using std::vector; using stdx::make_unique; -NearStage::NearStage(OperationContext* txn, +NearStage::NearStage(OperationContext* opCtx, const char* typeName, StageType type, WorkingSet* workingSet, Collection* collection) - : PlanStage(typeName, txn), + : PlanStage(typeName, opCtx), _workingSet(workingSet), _collection(collection), _searchState(SearchState_Initializing), @@ -283,7 +283,7 @@ bool NearStage::isEOF() { return SearchState_Finished == _searchState; } -void NearStage::doInvalidate(OperationContext* txn, const RecordId& dl, InvalidationType type) { +void NearStage::doInvalidate(OperationContext* opCtx, const RecordId& dl, InvalidationType type) { // If a result is in _resultBuffer and has a RecordId it will be in _seenDocuments as // well. It's safe to return the result w/o the RecordId, so just fetch the result. unordered_map<RecordId, WorkingSetID, RecordId::Hasher>::iterator seenIt = @@ -292,7 +292,7 @@ void NearStage::doInvalidate(OperationContext* txn, const RecordId& dl, Invalida if (seenIt != _seenDocuments.end()) { WorkingSetMember* member = _workingSet->get(seenIt->second); verify(member->hasRecordId()); - WorkingSetCommon::fetchAndInvalidateRecordId(txn, member, _collection); + WorkingSetCommon::fetchAndInvalidateRecordId(opCtx, member, _collection); verify(!member->hasRecordId()); // Don't keep it around in the seen map since there's no valid RecordId anymore |