[SERVER-20950] Coverity analysis defect 76591: Big parameter passed by value Created: 15/Oct/15  Updated: 15/Oct/15  Resolved: 15/Oct/15

Status: Closed
Project: Core Server
Component/s: Querying, Sharding
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: David Storch
Resolution: Duplicate Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-20949 ClusterClientCursorParams should not ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

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

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

                                                     ClusterClientCursorParams params)


Generated at Thu Feb 08 03:55:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.