In versions before 2.8.0-RC3, attempting to use update and remove at the same time in findAndModify resulted in an error when sort was specified. This validation appears to have been removed in this commit (perhaps inadvertently).
With the validation removed, the remove appears to take precedence.
When sort is not specified, remove always takes precedence without warning the about the conflicting options.
- is related to
-
SERVER-15715 find_and_modify appears to be taking a DB_X lock
- Closed