-
Type: Bug
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
-
Atlas Streams
-
Fully Compatible
-
ALL
-
Sprint 50, Sprint 51, Sprint 52, Sprint 53, Sprint 54
COPY_INSTEAD_OF_MOVE
Unnecessary object copies can affect performance. Creating a copy of a variable that is no longer used instead of using std::move().
/src/mongo/db/modules/enterprise/src/streams/exec/planner.cpp:1458: COPY_INSTEAD_OF_MOVE 155589 "spec" is passed-by-value as parameter to "operator ()" when it could be moved instead.
/src/mongo/db/exec/document_value/document.h:137: COPY_INSTEAD_OF_MOVE 155589 Type "mongo::Document" is move-constructible.