Hi Chad,

If you are using pthreads and the thread libmysqlclient then you need
to call mysql_thread_end before you do pthread_exit, MySQL only does
it for you on Win32... LuaSQL cannot call it because it has no idea
what is the lifetime of your threads.

See here: http://dev.mysql.com/doc/refman/5.0/en/mysql-thread-end.html

--
Fabio Mascarenhas, Lablua
http://www.lua.inf.puc-rio.br




On Tue, Sep 29, 2009 at 7:13 PM, Chad Phillips -- Apartment Lines
<c...@apartmentlines.com> wrote:
> i wanted to add this to the discussion.
>
> it appears that there's an unresolved memory leak in libmysqlclient:
> http://bugs.mysql.com/bug.php?id=45002
>
> unfortunately, my tests with libmysqlclient_r are even worse -- i'm not sure
> if that's because the LuaSQL code doesn't support libmysqlclient_r the way
> it needs to, or it's even more broken.
>
> _______________________________________________
> Kepler-Project mailing list
> Kepler-Project@lists.luaforge.net
> http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
> http://www.keplerproject.org/
>

_______________________________________________
Kepler-Project mailing list
Kepler-Project@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

Reply via email to