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

document.atomically can take multiple of the same operation. fixes MONGOID-3057

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

      Prior to this commit, the second etc operation of a certain type would not execute.

      doc.atomically do
        doc.inc(:views).
          inc(:other)
      end
      

      Would have only incremented :other. Now it works as expected.

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

              Created:
              Updated:
              Resolved: