Skip to content
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

Make find unique slug thread safe #168

Merged
merged 1 commit into from
Jun 1, 2014
Merged

Make find unique slug thread safe #168

merged 1 commit into from
Jun 1, 2014

Conversation

jaxesn
Copy link
Contributor

@jaxesn jaxesn commented May 30, 2014

It would be awesome if slug generation was thread safe. Attempting to create two objects that would use the same slug, results in two objects using the same slug. By wrapping find_unique in synchronize, results in correctly getting different slugs.

digitalplaywright added a commit that referenced this pull request Jun 1, 2014
Make find unique slug thread safe
@digitalplaywright digitalplaywright merged commit a5a2486 into mongoid:master Jun 1, 2014
@digitalplaywright
Copy link
Collaborator

Thanks! That looks good. :)

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