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

Can't use read preference when count documents.

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.2
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Environment:
      MongoDB version v2.6.11,
      mongoid '5.0.2'

      I set read preference :nearest in mongo default client.
      It works well at CRUD methods, but when I use count method from mongoid, always connect to primary node.

            Assignee:
            Unassigned Unassigned
            Reporter:
            drobune_fixie Yuichi Sano
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: