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

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

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.0.6
    • Affects Version/s: None
    • Component/s: Shell API
    • None
    • 2
    • Needed
    • Hide

      See the engineering description.

      Show
      See the engineering description.
    • Iteration Kampala

      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.

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

              Created:
              Updated:
              Resolved: