[SERVER-59620] Remove yield preparation and recovery logic from SBE stages Created: 26/Aug/21  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Ian Boros Assignee: Backlog - Storage Execution Team
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-59621 Consider refactoring SBE PlanStage yi... Backlog
Assigned Teams:
Storage Execution
Participants:

 Description   

Once we have the guarantee that a cursor's data will remain valid until the following call to next() we should remove the following:

-The slotsAccessible() and disableSlotAccess() functions in sbe::PlanStage.
-Any copies of data made as part of yield preparation (usually a call to makeOwned()).
-Resetting cursor positions, as part of doSaveState() in leaf nodes (scan.cpp, ix_scan.cpp).
-Tracking of _outerGetNext in the NLJ stage.

This should be do-able in one patch. We will likely be able to remove doSaveState()/doRestoreState() from many of the sbe::PlanStages.


Generated at Thu Feb 08 05:47:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.