[unixODBC-dev] FW: Patch for unixODBC 2.3.0

Cihlar, Jan Jan.Cihlar at acision.com
Tue Aug 2 11:11:48 BST 2011


One my colleague (Miloslav Marik) prepared a patch for unixODBC fixing some issues:

Two issues were observed when testing unixODBC. The test application created about 200 connections to a database server and allocated about 200 statements per connections.

(1) Extremely slow shut down. The problem is caused by a single linked list of descriptor handlers and statement handlers so when removing a handler from a list, the list must be searched from the beginning. The patch replaces the single linked lists by a double linked list.

(2) Extremely slow manual commit transaction. The problem is caused by a global statement list. The list is searched for statements belonging to a connection to check state transition. The patch introduces per connection statement list.

(3) There was also one sprintf not surrounded by an "if" statement.

The new functionality is available only for sources compiled with the "fast-validate" option.

The patch was accepted by Nick to 2.3.1pre.



This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-dev/attachments/20110802/719dfc33/attachment.html>

More information about the unixODBC-dev mailing list