SpringSource/grails-data-mapping — pull request #89 by tomwidmer (2013-01-04 11:05:06+00:00)
Title: MongoDB optimistic locking updates implemented.

Version is now atomically updated using a 'compare and exchange' type
atomic operation, avoiding possible race conditions in a
multi-threaded or multi-process situation.

Note that this means at least an 'acknowledge' level of write concern is always
used for versioned entities.

Added a corresponding note to the docs.

REBASED onto master to resolve merge conflict! Merge either this or #87, not both!