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

Can the default behavior for replica pairs allow slaves to run queries?

    • Type: Icon: Question Question
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.9.9
    • Affects Version/s: 0.9.6
    • Component/s: None
    • None

      Right now when you fire up a replica pair for the first time, all actions on the slave will get the following error:

      error:

      {"$err" : "not master"}

      This requires you to manually run:

      db.getMongo().setSlaveOk()

      Seems a bit strange to not allow this by default, as it renders a pair somewhat useless out of the box. Or is there a legitimate reason to disallow that by default?

            Assignee:
            dwight@mongodb.com Dwight Merriman
            Reporter:
            mitchitized Mitch Pirtle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: