[SERVER-68730] Coverity analysis defect 128584: AUTO_CAUSES_COPY Created: 11/Aug/22  Updated: 11/Oct/22  Resolved: 11/Oct/22

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

Type: Bug Priority: Minor - P4
Reporter: Coverity Collector User Assignee: Enrico Golfieri
Resolution: Duplicate Votes: 0
Labels: coverity, neweng, sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-69581 Clang tidy performance-for-range-copy Closed
Operating System: ALL
Sprint: Sharding EMEA 2022-10-17
Participants:

 Description   

AUTO_CAUSES_COPY

Unnecessary object copies can affect performance. Using the auto keyword without an & causes a copy.
/src/mongo/db/s/sharding_ddl_util.cpp:198: AUTO_CAUSES_COPY 128584 Using the "auto" keyword without an "&" causes the copy of an object of type Response.



 Comments   
Comment by Enrico Golfieri [ 11/Oct/22 ]

already fixed here SERVER-69581

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