summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/update.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/exec/update.cpp')
-rw-r--r--src/mongo/db/exec/update.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mongo/db/exec/update.cpp b/src/mongo/db/exec/update.cpp
index b97d3209e80..cac39a29729 100644
--- a/src/mongo/db/exec/update.cpp
+++ b/src/mongo/db/exec/update.cpp
@@ -569,11 +569,7 @@ PlanStage::StageState UpdateStage::doWork(WorkingSetID* out) {
// it.
ScopeGuard memberFreer = MakeGuard(&WorkingSet::free, _ws, id);
- if (!member->hasRecordId()) {
- // We expect to be here because of an invalidation causing a force-fetch.
- ++_specificStats.nInvalidateSkips;
- return PlanStage::NEED_TIME;
- }
+ invariant(member->hasRecordId());
recordId = member->recordId;
// Updates can't have projections. This means that covering analysis will always add