Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-910

Make db.setSecondaryOk()/mongo.setSecondaryOk()/rs.secondaryOk() deprecated aliases for setReadPref

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.6
    • Component/s: Shell API
    • Labels:
      None
    • Story Points:
      2
    • Documentation Changes:
      Needed
    • Documentation Changes Summary:
      See the engineering description.
    • Sprint:
      Iteration Kampala

      Description

      As discussed on Slack, we should consider making

      • db.setSecondaryOk()
      • mongo.setSecondaryOk()
      • rs.secondaryOk()

      aliases for db.getMongo().setReadPref('primaryPreferred') if the current read preference is 'primary', otherwise no-op.

      If not, the compatibility page at https://docs.mongodb.com/mongodb-shell/reference/compatibility/#deprecated-methods should be updated to mark these methods as removed rather than deprecated.

        Attachments

          Activity

            People

            Assignee:
            anna.henningsen Anna Henningsen
            Reporter:
            anna.henningsen Anna Henningsen
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: