[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: |