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

What is correct way to create capped collection on master node?

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

      This code is complaining: failed with error "not master"

      "Activity" is my model.

      Activity.mongo_session.with(consistency: :strong).
        command(create: 'my_capped_collection', capped: true, size: 7500000, max: 100000)
      

      I'm running mongoid from master at f89502d7d0b418c20f5b04f5d106b61b4091cd68
      and Rails 4.

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

              Created:
              Updated:
              Resolved: