[SERVER-62247] Avoid making copies of the vector in TargetedWriteBatch::getWrites() Created: 23/Dec/21  Updated: 29/Oct/23  Resolved: 27/Dec/21

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

Type: Bug Priority: Major - P3
Reporter: Yuhong Zhang Assignee: Yuhong Zhang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-29262 Retire usage of `OwnedPointerVector` ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2022-01-10
Participants:
Linked BF Score: 20

 Description   

we can just return the vector of the unique pointers instead of making a new copy of a vector of raw pointers.



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

Author:

{'name': 'Yuhong Zhang', 'email': 'danielzhangyh@gmail.com', 'username': 'YuhongZhang98'}

Message: SERVER-62247 Avoid making copies of the vector in TargetedWriteBatch::getWrites()
Branch: master
https://github.com/mongodb/mongo/commit/9676a643796a272d9c37127d2457593599018c19

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