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

Coverity analysis defect 122770: AUTO_CAUSES_COPY

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 7.0.0-rc0
    • None
    • None
    • Query Optimization
    • Fully Compatible
    • QE 2023-03-06, QE 2023-03-20

    Description

      AUTO_CAUSES_COPY

      Unnecessary object copies can affect performance. Using the auto keyword without an & causes a copy.
      /src/mongo/db/pipeline/document_source_queue.cpp:47: AUTO_CAUSES_COPY 122770 Using the "auto" keyword without an "&" causes the copy of an object of type BSONElement.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: