Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-476

find_and_modify failed when read from secondary

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.8.2
    • Affects Version/s: 1.7.0
    • Component/s: None
    • Environment:
      MongoDB 2.2.0

      Mongo::OperationFailure (Database command 'findandmodify' failed: (errmsg: 'not master'; note: 'from execCommand'; ok: '0.0').)

      when

      @con = Mongo::ReplSetConnection.new(['localhost:27017','localhost:27018'], :read => :secondary)

      The driver should run the query on a primary.

            Assignee:
            tyler@10gen.com Tyler Brock
            Reporter:
            dozen Yutaro Dozen
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: