Skip to content

Fix logic for missing geo index error message check #1824

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
May 18, 2016

Conversation

TylerBrock
Copy link
Contributor

This will get the ParseGeoPoint.spec tests passing with MongoDB 3.2

@drew-gross
Copy link
Contributor

Sweet. What was the change in Mongo that made this change necessary?

@TylerBrock
Copy link
Contributor Author

None, the logic was just wrong :-)

@TylerBrock
Copy link
Contributor Author

TylerBrock commented May 18, 2016

The second condition was never checked with the || and so even though there was a match for that error message in MongoDB 3.2 when the index is missing it still threw.

You might be wondering why the error code changed or is no longer reported now, that I don't know but essentially that is the change.

@drew-gross
Copy link
Contributor

Interesting. Error codes are something I would expect to not change between versions. Well, feel free to merge whenever you want.

@TylerBrock
Copy link
Contributor Author

I might do some more digging and file a JIRA ticket about this instead.

@TylerBrock
Copy link
Contributor Author

@TylerBrock TylerBrock merged commit d7d4699 into parse-community:master May 18, 2016
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.

2 participants