[SERVER-32603] Methods on QueryPlanner class should return owned objects by std::unique_ptr Created: 09/Jan/18  Updated: 30/Oct/23  Resolved: 11/Jan/18

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

Type: Improvement Priority: Major - P3
Reporter: David Storch Assignee: David Storch
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Sprint: Query 2018-01-15
Participants:
Linked BF Score: 15

 Description   

The existing method signatures return owned raw pointers. This makes it easy for callers to leak said pointers, especially on error.



 Comments   
Comment by Githook User [ 11/Jan/18 ]

Author:

{'email': 'david.storch@10gen.com', 'name': 'David Storch', 'username': 'dstorch'}

Message: SERVER-32603 Modernize QueryPlanner methods to use unique_ptr.
Branch: master
https://github.com/mongodb/mongo/commit/e377025071e4c9fff336fc57741e5cc8511607af

Generated at Thu Feb 08 04:30:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.