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

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Major - P3
    • 0.9.9
    • Affects Version/s: 0.9.6
    • Component/s: None
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • 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 Merriman
              Reporter:
              Mitch Pirtle
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: