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