[SERVER-54998] Clarify internal ownership structures in BucketCatalog Created: 05/Mar/21  Updated: 23/Mar/21  Resolved: 23/Mar/21

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

Type: Improvement Priority: Major - P3
Reporter: Dan Larkin-York Assignee: Dan Larkin-York
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Sprint: Execution Team 2021-03-22, Execution Team 2021-04-05
Participants:

 Description   

Currently the internal architecture of BucketCatalog relies heavily on shared_ptrs and weak_ptrs. This leads to some confusing ownership semantics, and it becomes difficult to reason about object lifetimes. We should be able to make use of unique_ptrs in a single location, and raw pointers or references elsewhere as necessary.



 Comments   
Comment by Githook User [ 23/Mar/21 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-54998 Clarify internal ownership structures in BucketCatalog
Branch: master
https://github.com/mongodb/mongo/commit/54066fd72df62a0ef2a59e4ebef3d717321f66f2

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