[SERVER-70423] openCollection should return CollectionPtr Created: 10/Oct/22  Updated: 29/Oct/23  Resolved: 27/Oct/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc0

Type: Task Priority: Major - P3
Reporter: Henrik Edin Assignee: Will Buerger
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-10-31
Participants:

 Description   

Collection instances created by openCollection have their lifetime managed by the storage snapshot. We do not need to return a shared_ptr and can return a CollectionPtr to make it easier for the caller by using the same return type as the regular collection lookup functions.



 Comments   
Comment by Githook User [ 27/Oct/22 ]

Author:

{'name': 'Will Buerger', 'email': 'will.buerger@mongodb.com', 'username': 'wbuerger46'}

Message: SERVER-70423: Change openCollection to return CollectionPtr
Branch: master
https://github.com/mongodb/mongo/commit/be98d83d232dc09acbc9bc77fb95a2d51b8c24a8

Generated at Thu Feb 08 06:16:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.