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

Coverity analysis defect 135400: AUTO_CAUSES_COPY

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • Fully Compatible

      AUTO_CAUSES_COPY

      Unnecessary object copies can affect performance. Using the auto keyword without an & causes a copy.
      /src/mongo/db/exec/sbe/values/value_printer.cpp:547: AUTO_CAUSES_COPY 135400 Using the "auto" keyword without an "&" causes the copy of an object of type pair.

            Assignee:
            amr.elhelw@mongodb.com Amr Elhelw
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: