[SERVER-68994] Fix AUTO_CAUSES_COPY coverity errors Created: 19/Aug/22  Updated: 29/Oct/23  Resolved: 15/Sep/22

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

Type: Improvement Priority: Minor - P4
Reporter: Coverity Collector User Assignee: Ted Tuckman
Resolution: Fixed Votes: 0
Labels: coverity, neweng, quick-tech-debt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2022-08-19 at 11.13.47 AM.png    
Issue Links:
Duplicate
is duplicated by SERVER-68669 Coverity analysis defect 122849: AUTO... Closed
is duplicated by SERVER-68813 Coverity analysis defect 122634: AUTO... Closed
is duplicated by SERVER-68991 Coverity analysis defect 122841: AUTO... Closed
is duplicated by SERVER-68992 Coverity analysis defect 122913: AUTO... Closed
is duplicated by SERVER-68995 Coverity analysis defect 123142: AUTO... Closed
is duplicated by SERVER-68999 Coverity analysis defect 123201: AUTO... Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

AUTO_CAUSES_COPY

Unnecessary object copies can affect performance. Using the auto keyword without an & causes a copy.
/src/mongo/db/cst/cst_match_translation.cpp:144: AUTO_CAUSES_COPY 123017 Using the "auto" keyword without an "&" causes the copy of an object of type CNode.



 Comments   
Comment by Githook User [ 15/Sep/22 ]

Author:

{'name': 'Ted Tuckman', 'email': 'ted.tuckman@mongodb.com', 'username': 'TedTuckman'}

Message: SERVER-68994 Fix AUTO_CAUSES_COPY coverity errors
Branch: master
https://github.com/mongodb/mongo/commit/9b5cbbbc2d3cae926689e4e632daa73062bb1432

Comment by Ana Meza [ 02/Sep/22 ]

Not urgent - but please do if you have time

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