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

Double check whether the table exists or not when creating new one #11

Merged
merged 1 commit into from
Jul 4, 2017

Conversation

emac
Copy link

@emac emac commented Jul 4, 2017

Just like the double-check pattern when implementing Singleton, see https://en.wikipedia.org/wiki/Double-checked_locking

@coveralls
Copy link

coveralls commented Jul 4, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 0280a23 on emac:master into 21535fd on muesli:master.

@muesli muesli merged commit a299e7f into muesli:master Jul 4, 2017
@muesli
Copy link
Owner

muesli commented Jul 4, 2017

Thanks for the fix! Just curious, did you actually run into issues with this in a real situation, or did you discover it by a purely theoretical glance at the code? :)

@emac
Copy link
Author

emac commented Jul 5, 2017

Not yet. I found this issue while we were reading your code in a team technique activity. :)

@muesli muesli mentioned this pull request Oct 21, 2018
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.

3 participants