-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Catalog and Routing
-
Fully Compatible
-
ALL
-
CAR Team 2025-07-21
-
1
-
🟩 Routing and Topology
-
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/commands/rwc_defaults_commands.cpp:175: AUTO_CAUSES_COPY 175292 Using the "auto" keyword without an "&" causes the copy of an object of type "mongo::ShardId".
/data/mci/6140986752f315ae1d2c1d7ffa1ce13a/bazel_cache/1e034c4de3ae6337dc7b387a79ef43e8/execroot/_main/src/mongo/db/commands/rwc_defaults_commands.cpp:175: AUTO_CAUSES_COPY 175292 The variable "configId" has a non-"const" type, however its value is never changed.