Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-2485

Indexes and replicaset

    • Type: Icon: Task Task
    • Resolution: Done
    • 3.0.10
    • Affects Version/s: None
    • Component/s: None

      Hi,

      using commands such as rake db:mongoid:remove_indexes RAILS_ENV=production; with a replica set will raise an error : "not master"

      If the consistency is set to :strong everything works fine.

      So I think those commands are targeting secondaries instead of master.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jjaffeux jjaffeux
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: