We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2a4ff8 commit 91ba19eCopy full SHA for 91ba19e
lib/operations/find.js
@@ -20,6 +20,9 @@ class FindOperation extends OperationBase {
20
// copied from `CommandOperationV2`, to be subclassed in the future
21
this.server = server;
22
23
+ // updates readPreference if setReadPreference was called on the cursor
24
+ this.readPreference = ReadPreference.resolve(this, this.options);
25
+
26
if (typeof this.cmd.allowDiskUse !== 'undefined' && maxWireVersion(server) < 4) {
27
callback(new MongoError('The `allowDiskUse` option is not supported on MongoDB < 3.2'));
28
return;
0 commit comments