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

Coverity analysis defect 122962: AUTO_CAUSES_COPY

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • ALL
    • Repl 2022-09-19

      AUTO_CAUSES_COPY

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

            Assignee:
            vesselina.ratcheva@mongodb.com Vesselina Ratcheva (Inactive)
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: