-
Notifications
You must be signed in to change notification settings - Fork 12
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
MySQL multi-threading #5
Comments
I came across this bug years ago; I don't recall much other than thinking at the time that it wasn't a critical issue (for my use case at least). It looks like I even tried to leave some warnings behind about the issue https://github.com/UnwashedMeme/clsql/blob/master/doc/threading-warnings.txt Yes, patches are welcome. I can't promise a fast turnaround but if you keep the patches small and concise then there's a better chance we can process them quickly (ever). Another user tried to help out with threading stuff a while back; but his giant patches didn't apply cleanly and I'm ashamed to say I've never worked through them: https://github.com/UnwashedMeme/clsql/tree/jtk-threads I just updated the master branch; this actually moves backward slightly but directly matches Kevin M Rosenberg's official master: http://git.b9.com/?p=clsql.git. I just updated the development branch; this includes all the patches that @bobbysmith007 has been working on, notably #4 and some build issues on newer Ubuntu. Base your work here. Once we get that in we'll work on getting this into a proper CLSQL release. |
Update on topic: Threading problems still there I'm planning to address this (hopefully soon) in PR. |
Hey guys,
I spent this whole nigth banging my head trying to understand source of creepy connections errors.
They were so creepy that I started to think about multitheading issues :-). And here we go
http://dev.mysql.com/doc/refman/5.0/en/mysql-library-init.html
Test case is simple (from memory):
that is it. If lucky you can see something like
or maybe even
Right now as a hot fix I wrapped
database-connect
with mutex.However I like
mysql_library_init
way more. What you think? I'm happy to create pull request with fix but before I would like to hear what you think is the best.The text was updated successfully, but these errors were encountered: