Coverity analysis defect 122853: AUTO_CAUSES_COPY

XMLWordPrintableJSON

    • Cluster Scalability
    • Sharding NYC 2023-06-12, Sharding NYC 2023-06-26, Sharding NYC 2023-07-10, Sharding NYC 2023-07-24, Sharding NYC 2023-08-07, Sharding NYC 2023-08-21, Sharding NYC 2023-09-04, Sharding NYC 2023-09-18, Sharding NYC 2023-10-02, Sharding NYC 2023-10-16
    • 1
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      AUTO_CAUSES_COPY

      Unnecessary object copies can affect performance. Using the auto keyword without an & causes a copy.
      /src/mongo/client/replica_set_change_notifier.cpp:96: AUTO_CAUSES_COPY 122853 Using the "auto" keyword without an "&" causes the copy of an object of type weak_ptr.

            Assignee:
            [DO NOT USE] Backlog - Cluster Scalability
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: