diff options
Diffstat (limited to 'src/mongo/dbtests/mock/mock_dbclient_connection.h')
-rw-r--r-- | src/mongo/dbtests/mock/mock_dbclient_connection.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/dbtests/mock/mock_dbclient_connection.h b/src/mongo/dbtests/mock/mock_dbclient_connection.h index f931766af7d..1976ce70d4d 100644 --- a/src/mongo/dbtests/mock/mock_dbclient_connection.h +++ b/src/mongo/dbtests/mock/mock_dbclient_connection.h @@ -49,7 +49,7 @@ public: */ static Message mockFindResponse(NamespaceString nss, long long cursorId, - std::vector<BSONObj> firstBatch, + const std::vector<BSONObj>& firstBatch, const BSONObj& metadata) { auto cursorRes = CursorResponse(nss, cursorId, firstBatch); BSONObjBuilder bob(cursorRes.toBSON(CursorResponse::ResponseType::InitialResponse)); @@ -62,7 +62,7 @@ public: */ static Message mockGetMoreResponse(NamespaceString nss, long long cursorId, - std::vector<BSONObj> batch, + const std::vector<BSONObj>& batch, const BSONObj& metadata, bool moreToCome = false) { auto cursorRes = CursorResponse(nss, cursorId, batch); |