You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/mongo/client/dbclient.cpp
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,9 @@
40
40
#include"mongo/util/net/ssl_manager.h"
41
41
#include"mongo/util/password_digest.h"
42
42
43
+
#include<algorithm>
44
+
#include<cstdlib>
45
+
43
46
namespacemongo {
44
47
45
48
using std::auto_ptr;
@@ -857,11 +860,11 @@ namespace mongo {
857
860
/** query N objects from the database into an array. makes sense mostly when you want a small number of results. if a huge number, use
858
861
query() and iterate the cursor.
859
862
*/
860
-
voidDBClientInterface::findN(vector<BSONObj>& out, const string& ns, Query query, int nToReturn, int nToSkip, const BSONObj *fieldsToReturn, int queryOptions) {
861
-
out.reserve(nToReturn);
863
+
voidDBClientInterface::findN(vector<BSONObj>& out, const string& ns, Query query, int nToReturn, int nToSkip, const BSONObj *fieldsToReturn, int queryOptions, int batchSize) {
0 commit comments