Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-68885

Coverity analysis defect 123452: AUTO_CAUSES_COPY

    • Type: Icon: Improvement Improvement
    • Resolution: Works as Designed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
    • Query Execution

      AUTO_CAUSES_COPY

      Unnecessary object copies can affect performance. Using the auto keyword without an & causes a copy.
      /src/mongo/s/write_ops/batched_command_response.cpp:209: AUTO_CAUSES_COPY 123452 Using the "auto" keyword without an "&" causes the copy of an object of type BSONElement.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: