summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/s/query/establish_cursors.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/query/establish_cursors.cpp b/src/mongo/s/query/establish_cursors.cpp
index 82c12d79204..e29c2046f73 100644
--- a/src/mongo/s/query/establish_cursors.cpp
+++ b/src/mongo/s/query/establish_cursors.cpp
@@ -70,7 +70,7 @@ public:
/**
* Make a RequestSender and thus send requests.
*/
- void sendRequests(const ReadPreferenceSetting readPref,
+ void sendRequests(const ReadPreferenceSetting& readPref,
const std::vector<std::pair<ShardId, BSONObj>>& remotes,
Shard::RetryPolicy retryPolicy);
@@ -115,7 +115,7 @@ private:
std::vector<RemoteCursor> _remoteCursors;
};
-void CursorEstablisher::sendRequests(const ReadPreferenceSetting readPref,
+void CursorEstablisher::sendRequests(const ReadPreferenceSetting& readPref,
const std::vector<std::pair<ShardId, BSONObj>>& remotes,
Shard::RetryPolicy retryPolicy) {
// Construct the requests