MySQL embedded and pthreads

Edward Hades edward.hades at gmail.com
Mon Jul 28 22:17:46 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi, guys!

As you possibly know, I've been working on MySQLe integration with
Amarok. I have encountered several issues.

First, MySQLe needs patching. By default it compiles without -fPIC flag
that we need, it has a maximum key limit of 1000 bytes (although large
key usage in amarok is a concern itself, but more of an optimization
nature). Also, it calls exit() whenever feels like it was offended; I
guess that should be changed to something at least printing what
happened. I'll make a build script to simplify life for us, but
packaging questions will remain (luckily it's a build-dep only, so this
is not hard to settle).

Also, there is a thread safety issue. MySQL requires every thread to
invoke certain procedures (mysql_thread_init and mysql_thread_end)
before accessing its data and before death respectively. I've done some
street pthread magic that takes care of initialization, but I still
didn't come up with a way to run mysql_thread_end before thread exit.
Ideas much appreciated ;). It works fine without it, but it results in
wasted resources.

This being my first post, I'd like to thank you all for the marvelous
piece of software you make and express honor and delight of being
allowed to stick my dirty fingers in it ;) You rock!

All the best,
Edward "Hades" Toroshchin
IRC nickname: Aides
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkiOKWoACgkQd7FTKeBdCdNMgQCfQd12OL1sH4sHRq5VslzBsaeD
S2YAn1Dy3i23y87TtIu0AT0U9WP7Z25o
=0Gk5
-----END PGP SIGNATURE-----


More information about the Amarok-devel mailing list