[SERVER-69098] Coverity analysis defect 128699: AUTO_CAUSES_COPY Created: 23/Aug/22  Updated: 27/Oct/23  Resolved: 30/Aug/22

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Backlog - Storage Execution Team
Resolution: Gone away Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Storage Execution
Operating System: ALL
Participants:

 Description   

AUTO_CAUSES_COPY

Unnecessary object copies can affect performance. Using the auto keyword without an & causes a copy.
/src/mongo/db/catalog/validate_adaptor.cpp:348: AUTO_CAUSES_COPY 128699 Using the "auto" keyword without an "&" causes the copy of an object of type BSONElement.


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