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

Coverity analysis defect 122617: AUTO_CAUSES_COPY

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 6.1.0-rc0
    • None
    • Fully Compatible
    • ALL
    • Repl 2022-08-22, Repl 2022-09-05

    Description

      AUTO_CAUSES_COPY

      Unnecessary object copies can affect performance. Using the auto keyword without an & causes a copy.
      /src/mongo/db/repl/initial_syncer.cpp:438: AUTO_CAUSES_COPY 122617 Using the "auto" keyword without an "&" causes the copy of an object of type Stats.

      Attachments

        Activity

          People

            vesselina.ratcheva@mongodb.com Vesselina Ratcheva
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: