Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-2678

ReadPreference.fromOptions doesn't pull "maxStalenessSeconds" from options

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.10
    • Affects Version/s: 3.6.0, 3.5.10, 4.0.0
    • Component/s: None
    • None

      I'm looking at ReadPreference in master & 3.6

      https://github.com/mongodb/node-mongodb-native/blob/master/src/read_preference.ts#L93-L113

      I noticed two things wrong here:

      1. maxStalenessSeconds isn't pulled from options

      2. hedge isn't supposed to be in options

            Assignee:
            thomas.reggi@mongodb.com Thomas Reggi (Inactive)
            Reporter:
            thomas.reggi@mongodb.com Thomas Reggi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: