Skip to Content.
Sympa Menu

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

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "ZIGLIO Frediano" <Frediano.Ziglio AT vodafoneomnitel.it>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: RE: [ freetds-Patches-575613 ] Do not use global ms- g/err handlers
  • Date: Mon, 1 Jul 2002 14:33:31 -0400


> > 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




Archive powered by MHonArc 2.6.24.

Top of Page