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

#with doesn't work with map_reduce

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

      Map-reduce commands that write to a collection need to be run on master. I would expect to be able to change the map_reduce session using #with, e.g. .with(session: :master_only) but it doesn't seem to work. In fact it looks like with removes all the existing selectors.

            Assignee:
            Unassigned Unassigned
            Reporter:
            alexeits Alex Tsibulya
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: