|
From: Michal L. <mi...@lo...> - 2006-09-17 11:20:28
|
Hi all,
one of the final steps on the way to mysqlfs-0.3 has been just
committed: the completely rewritten pool.c that isn't limited in a
number of concurrently open connections anymore. Instead of a fixed-size
array I use a dynamic list now with some optimizations to avoid frequent
malloc()s.
Works for me but please test it anyway ;-)
And yes, the mailing lists now work!
Here's the ChangeLog:
2006-09-17 Michal Ludvig <mi...@lo...>
* pool.c: Rewritten from scratch. It doesn't have a limit
on open connections anymore and instead creates new ones
on request. Returned connections are not immediately
closed, instead put into a LIFO-type stack and reused
later. Maximum number of connections idling on the stack
can be set as well as the initial number of connections
opened on start.
This rewrite triggered search-and-replace changes
in mysqlfs.c (no more MYSQL_CONN type). Instead I return
the connection itself (MYSQL*) though typed as (void*) -
probably not the best choice. The intent was to
prepare for support of other DBs. It works for now but
I'll likely improve this later ;-)
Michal
|