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

XMLWordPrintableJSON

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

      See the engineering description.

      Show
      See the engineering 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.

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

                Created:
                Updated:
                Resolved: