-
Type:
Bug
-
Resolution: Gone away
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Networking & Observability
-
ALL
-
N&O 2025-08-04
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Use of auto that causes a copy
Unnecessary object copies can affect performance. Using the auto keyword without an & causes a copy.
/data/mci/7b5199136d945ea4e1751b7b3bd3d384/bazel_cache/658afbbc91b088dd7e554f8eea998579/execroot/_main/src/mongo/db/mirror_maestro.cpp:670: AUTO_CAUSES_COPY 175493 Using the "auto" keyword without an "&" causes the copy of an object of type "mongo::TargetedMirroredReadsOptions".
/data/mci/7b5199136d945ea4e1751b7b3bd3d384/bazel_cache/658afbbc91b088dd7e554f8eea998579/execroot/_main/src/mongo/db/mirror_maestro.cpp:670: AUTO_CAUSES_COPY 175493 The variable "targetedParams" has a non-"const" type, however its value is never changed.
- is related to
-
SERVER-107342 Coverity analysis defect 174811: Use of auto that causes a copy
-
- Closed
-