Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-27346

maxStalenessSeconds doesn't appear in cursor.readPref()

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Won't Fix
    • 3.4.0
    • None
    • None
    • ALL
    • Hide

      mongos> db.foo.insert({"name":"foo"})
      WriteResult({ "nInserted" : 1 })
      mongos> db.foo.find().readPref
      function (mode, tagSet) {
          var readPrefObj = {mode: mode};
       
          if (tagSet) {
              readPrefObj.tags = tagSet;
          }
       
          return this._addSpecial("$readPreference", readPrefObj);
      }
      

      Show
      mongos> db.foo.insert({"name":"foo"}) WriteResult({ "nInserted" : 1 }) mongos> db.foo.find().readPref function (mode, tagSet) { var readPrefObj = {mode: mode};   if (tagSet) { readPrefObj.tags = tagSet; }   return this._addSpecial("$readPreference", readPrefObj); }
    • Sharding 2017-01-02

    Description

      maxStalenessSeconds isn't showing up in the cursor.readPref method implementation. I was under the impression that maxStalenessSeconds should also be applicable for the readPref method though I may of course be mistaken.

      I noticed this while documenting maxStalenessSeconds.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-sharding-nyc Backlog - Sharding NYC
              allison.moore@mongodb.com Allison Reinheimer Moore
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: