-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Query Optimization
-
Fully Compatible
-
ALL
-
None
-
3
-
TBD
-
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/6140986752f315ae1d2c1d7ffa1ce13a/bazel_cache/1e034c4de3ae6337dc7b387a79ef43e8/execroot/_main/src/mongo/s/query/planner/cluster_aggregation_planner.cpp:417: AUTO_CAUSES_COPY 174961 Using the "auto" keyword without an "&" causes the copy of an object of type "boost::optional<mongo::CollectionRoutingInfo>".
/data/mci/6140986752f315ae1d2c1d7ffa1ce13a/bazel_cache/1e034c4de3ae6337dc7b387a79ef43e8/execroot/_main/src/mongo/s/query/planner/cluster_aggregation_planner.cpp:417: AUTO_CAUSES_COPY 174961 The variable "cri" has a non-"const" type, however its value is never changed.
- is related to
-
SERVER-106975 Coverity analysis defect 174968: Use of auto that causes a copy
-
- Closed
-
-
SERVER-106977 Coverity analysis defect 174965: Use of auto that causes a copy
-
- Closed
-
-
SERVER-107333 Coverity analysis defect 174865: Use of auto that causes a copy
-
- Closed
-
- related to
-
SERVER-106976 Coverity analysis defect 174967: Use of auto that causes a copy
-
- Closed
-
-
SERVER-106977 Coverity analysis defect 174965: Use of auto that causes a copy
-
- Closed
-
-
SERVER-107333 Coverity analysis defect 174865: Use of auto that causes a copy
-
- Closed
-