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

Coverity analysis defect 122841: AUTO_CAUSES_COPY

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      AUTO_CAUSES_COPY

      Unnecessary object copies can affect performance. Using the auto keyword without an & causes a copy.
      /src/mongo/db/pipeline/document_source_internal_unpack_bucket.cpp:938: AUTO_CAUSES_COPY 122841 Using the "auto" keyword without an "&" causes the copy of an object of type SortPatternPart.

            Assignee:
            ted.tuckman@mongodb.com Ted Tuckman
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: