spring-projects/spring-data-mongodb — pull request #121 by christophstrobl (2014-02-10 12:24:33+00:00)
Title: DATAMONGO-828 - UpdateFirst throws OptimisticLockingFailureException when updating document that does not exist.

Added inspection of query dbo for check if the `Update` should only apply to a given version. If so and no documents have been updated we still throw an `OptimisticLockingException` for all other cases like `MongoTemplate.updateFirst` zero affected documents is fine.