Coverity analysis defect 99693: Big parameter passed by value

XMLWordPrintableJSON

    • Replication
    • ALL
    • Repl 17 (07/15/16), Repl 18 (08/05/16)
    • None
    • None
    • None
    • None
    • None
    • None
    • None

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

      Defect 99693 (STATIC_C)
      Checker PASS_BY_VALUE (subcategory none)
      File: /src/mongo/db/repl/data_replicator.cpp
      Function mongo::repl::DataReplicator::DataReplicator(mongo::repl::DataReplicatorOptions, std::unique_ptr<mongo::repl::DataReplicatorExternalState, std::default_delete<mongo::repl::DataReplicatorExternalState>>, mongo::repl::ReplicationExecutor *, mongo::repl::StorageInterface *)
      /src/mongo/db/repl/data_replicator.cpp, line: 240
      Passing parameter opts of type "mongo::repl::DataReplicatorOptions" (size 384 bytes) by value.

              DataReplicatorOptions opts,
      

            Assignee:
            [DO NOT USE] Backlog - Replication Team
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: