[SERVER-50329] Make the ChunkManager be used by-value instead of shared_ptr Created: 16/Aug/20  Updated: 29/Oct/23  Resolved: 17/Aug/20

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

Type: Improvement Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: PM-1645-Milestone-2
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding 2020-08-24
Participants:

 Description   

The ChunkManager object is just a view over the collection's RoutingInfoHistory at a particular point in time and already contains a std::shared_ptr<RoutingInfoHistory>. Because of this, it should always be passed by value.



 Comments   
Comment by Githook User [ 20/Aug/20 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-50329 Fix a use-after-free error in the CommonProcessInterface
Branch: master
https://github.com/mongodb/mongo/commit/3953e600dc2fcaac03964d336cb7dd7179b8c656

Comment by Githook User [ 17/Aug/20 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-50329 Make ChunkManager be passed by value everywhere

... instead of shared_ptr.
Branch: master
https://github.com/mongodb/mongo/commit/faf14d0009c5a39cf8acdffcf6473262e1759381

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