diff options
author | David Storch <david.storch@10gen.com> | 2018-08-14 12:13:20 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2018-08-29 09:32:45 -0400 |
commit | f55559368fe6a51689ffc3c08bab4434cb1b2b99 (patch) | |
tree | 69924e0deea641a1618b1c31dd1d5f0faf645b2f /src/mongo/db/exec/idhack.cpp | |
parent | ba01c62b56ad109a17c11ed3ab609e0453eadf59 (diff) | |
download | mongo-f55559368fe6a51689ffc3c08bab4434cb1b2b99.tar.gz |
SERVER-16857 Delete MMAPv1 diskloc invalidations.
- Removes of PlanStage::invalidate().
- Removes RecordCursor::invalidate() from the storage API.
- Removes CursorManager::invalidateDocument().
Diffstat (limited to 'src/mongo/db/exec/idhack.cpp')
-rw-r--r-- | src/mongo/db/exec/idhack.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/mongo/db/exec/idhack.cpp b/src/mongo/db/exec/idhack.cpp index d8f4f12ba82..366d9f7ca56 100644 --- a/src/mongo/db/exec/idhack.cpp +++ b/src/mongo/db/exec/idhack.cpp @@ -208,23 +208,6 @@ void IDHackStage::doReattachToOperationContext() { _recordCursor->reattachToOperationContext(getOpCtx()); } -void IDHackStage::doInvalidate(OperationContext* opCtx, const RecordId& dl, InvalidationType type) { - // Since updates can't mutate the '_id' field, we can ignore mutation invalidations. - if (INVALIDATION_MUTATION == type) { - return; - } - - // It's possible that the RecordId getting invalidated is the one we're about to - // fetch. In this case we do a "forced fetch" and put the WSM in owned object state. - if (WorkingSet::INVALID_ID != _idBeingPagedIn) { - WorkingSetMember* member = _workingSet->get(_idBeingPagedIn); - if (member->hasRecordId() && (member->recordId == dl)) { - // Fetch it now and kill the RecordId. - WorkingSetCommon::fetchAndInvalidateRecordId(opCtx, member, _collection); - } - } -} - // static bool IDHackStage::supportsQuery(Collection* collection, const CanonicalQuery& query) { return !query.getQueryRequest().showRecordId() && query.getQueryRequest().getHint().isEmpty() && |