[SERVER-51200] Set a CollectionPtr on the RequiresCollectionStage instances for a query restore for a getMore Created: 28/Sep/20  Updated: 29/Oct/23  Resolved: 13/Oct/20

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Task Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Henrik Edin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-51115 Multiple RequiresCollectionStage cann... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2020-10-05, Execution Team 2020-10-19
Participants:

 Comments   
Comment by Githook User [ 13/Oct/20 ]

Author:

{'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-51200 CollectionPtr in RequiresCollectionStage point to instance owned by AutoGetCollection

RequiresCollectionStage now holds a pointer to CollectionPtr owned by an AutoGetCollection.
When we save and restore the executor a new CollectionPtr pointer needs to be assigned.

Plan executors can no longer be created with temporary CollectionPtr instances and their interface have been changed to take pointers to avoid binding to rvalues.

RequiresCollectionStage no longer loads collections from the catalog and will be in sync with the owning AutoGetCollection.
Branch: master
https://github.com/mongodb/mongo/commit/bcab0c7e1c1b2e1516d06d23233fea9a425b99f7

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