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

Coverity analysis defect 128704: AUTO_CAUSES_COPY

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2022-09-05, Execution Team 2022-09-19

    Description

      AUTO_CAUSES_COPY

      Unnecessary object copies can affect performance. Using the auto keyword without an & causes a copy.
      /src/mongo/db/catalog/drop_database.cpp:271: AUTO_CAUSES_COPY 128704 Using the "auto" keyword without an "&" causes the copy of an object of type NamespaceString.

      Attachments

        Activity

          People

            adrian.gonzalez@mongodb.com Adrian Gonzalez Montemayor
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: