[ freetds-Patches-575613 ] Do not use global ms- g/err handlers

ZIGLIO Frediano Frediano.Ziglio at vodafoneomnitel.it
Mon Jul 1 15:33:31 EDT 2002


> > At this point I'd remove connection_list from TDSCONTEXT, add pointer for
> > msg/err handler 
> > 
> 
> Can't remove the connection list.  The be compatible with the API dbexit()
> must close all open database connections, so we are required to store the
> list of open connections somewhere. cs_ctx_drop() and SQLFreeEnv()
> probably should exhibit the same behaviour, but currently don't.  The big
> problem here is that the maintenance of the connection list is not
> thread-safe, we'd need to control access via a mutex of some sort. I'm
> happy to take patches on this one from anybody interested in threading.
> 

This not true. dblib call itself all function to update the list, so
connection_list stuff can be moved to dblib.

freddy77



More information about the FreeTDS mailing list