-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Catalog and Routing
-
Fully Compatible
-
ALL
-
CAR Team 2025-09-01, CAR Team 2025-09-15
-
0
-
1
-
🟦 Shard Catalog
-
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/6140986752f315ae1d2c1d7ffa1ce13a/bazel_cache/1e034c4de3ae6337dc7b387a79ef43e8/execroot/_main/src/mongo/db/rs_local_client.cpp:231: AUTO_CAUSES_COPY 174949 This lambda has an unspecified return type. This implies "auto" and causes the copy of an object of type "mongo::repl::ReadConcernArgs".
/data/mci/6140986752f315ae1d2c1d7ffa1ce13a/bazel_cache/1e034c4de3ae6337dc7b387a79ef43e8/execroot/_main/src/mongo/db/rs_local_client.cpp:237: AUTO_CAUSES_COPY 174949 This return statement creates a copy.