ClusterClientCursorParams should not be passed by value

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • QuInt B (11/02/15)
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

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

      Defect 76592 (STATIC_C)
      Checker PASS_BY_VALUE (subcategory none)
      File: /src/mongo/s/query/async_results_merger.cpp
      Function mongo::AsyncResultsMerger::AsyncResultsMerger(mongo::executor::TaskExecutor *, mongo::ClusterClientCursorParams)
      /src/mongo/s/query/async_results_merger.cpp, line: 66
      Passing parameter params of type "mongo::ClusterClientCursorParams" (size 160 bytes) by value.

                                                 ClusterClientCursorParams params)
      

              Assignee:
              David Storch
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: