diff options
| author | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-08-14 10:13:55 +0000 |
|---|---|---|
| committer | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-08-14 10:13:55 +0000 |
| commit | a532390f81e35f611fd02ad3d543f4d52217ca3c (patch) | |
| tree | 7bebb4f5614afb82c3103b6e9730a62f0b97a42d /node_modules/mongodb/lib/command_cursor.js | |
| parent | ef2674cfe13d2c425c5a3b312244c46f2531979d (diff) | |
Fixed signin and signup
Diffstat (limited to 'node_modules/mongodb/lib/command_cursor.js')
| -rw-r--r-- | node_modules/mongodb/lib/command_cursor.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node_modules/mongodb/lib/command_cursor.js b/node_modules/mongodb/lib/command_cursor.js index 94c5234..c0d86ca 100644 --- a/node_modules/mongodb/lib/command_cursor.js +++ b/node_modules/mongodb/lib/command_cursor.js @@ -163,7 +163,7 @@ CommandCursor.prototype.setReadPreference = function(r) { if(this.s.state != CommandCursor.INIT) throw MongoError.create({message: 'cannot change cursor readPreference after cursor has been accessed', driver:true}); if(r instanceof ReadPreference) { - this.s.options.readPreference = new CoreReadPreference(r.mode, r.tags); + this.s.options.readPreference = new CoreReadPreference(r.mode, r.tags, {maxStalenessMS: r.maxStalenessMS}); } else if(typeof r == 'string') { this.s.options.readPreference = new CoreReadPreference(r); } else if(r instanceof CoreReadPreference) { |
