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

some question about 'add_pool' #157

Open
CoderYCG opened this issue Nov 20, 2014 · 0 comments
Open

some question about 'add_pool' #157

CoderYCG opened this issue Nov 20, 2014 · 0 comments

Comments

@CoderYCG
Copy link

If there are two or more processes call function 'emysql:add_pool' together with the same PoolId, the function emysql_conn_mgr:has_pool/1 maybe return true both of them. So it will cause failure when you call the function emysql_conn_mgr:add_pool/1 in the second time, and notice that the function 'emysql_conn:open_connections/1' will be called success. It means you will make some connections with mysql but you never close the connections until the process down.

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

No branches or pull requests

1 participant