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

Coverity analysis defect 76590: Big parameter passed by value

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying, Sharding
    • Labels:
    • Fully Compatible
    • ALL

      A large function call parameter or exception catch statement is passed by value

      Defect 76590 (STATIC_C)
      Checker PASS_BY_VALUE (subcategory none)
      File: /src/mongo/s/query/cluster_client_cursor_impl.cpp
      Function mongo::ClusterClientCursorImpl::buildMergerPlan(mongo::executor::TaskExecutor *, mongo::ClusterClientCursorParams)
      /src/mongo/s/query/cluster_client_cursor_impl.cpp, line: 89
      Passing parameter params of type "mongo::ClusterClientCursorParams" (size 160 bytes) by value.

              executor::TaskExecutor* executor, ClusterClientCursorParams params) {
      

            Assignee:
            david.storch@mongodb.com David Storch
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: