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

Coverity analysis defect 128584: AUTO_CAUSES_COPY

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • ALL
    • Sharding EMEA 2022-10-17

      AUTO_CAUSES_COPY

      Unnecessary object copies can affect performance. Using the auto keyword without an & causes a copy.
      /src/mongo/db/s/sharding_ddl_util.cpp:198: AUTO_CAUSES_COPY 128584 Using the "auto" keyword without an "&" causes the copy of an object of type Response.

            Assignee:
            enrico.golfieri@mongodb.com Enrico Golfieri
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: