Skip to content

PHPLIB-240: FindAndModify should throw for unsupported write concern #293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 1, 2016

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented Dec 1, 2016

https://jira.mongodb.org/browse/PHPLIB-240

This reverts the logic in 21b7d92, which was to ignore an unsupported write concern for the duration of 1.x. Since the Collection helper methods do not supply a default write concern option if it is not supported, this change will only affect users that were explicitly passing a write concern and relying on the library to ignore it.

While a minor BC break, this changes makes findAndModify consistent with other write commands.

This reverts the logic in 21b7d92, which was to ignore an unsupported write concern for the duration of 1.x. Since the Collection helper methods do not supply a default write concern option if it is not supported, this change will only affect users that were explicitly passing a write concern and relying on the library to ignore it.

While a minor BC break, this changes makes findAndModify consistent with other write commands.
@jmikola jmikola merged commit fcb17e8 into mongodb:master Dec 1, 2016
jmikola added a commit that referenced this pull request Dec 1, 2016
@jmikola jmikola deleted the phplib-240 branch December 1, 2016 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant