[sr-dev] SF.net SVN: openser:[5928] branches/1.5/modules/permissions/trusted.c

Juha Heinanen jh at tutpro.com
Fri Oct 2 10:13:15 CEST 2009


Iñaki Baz Castillo writes:

 > > Log Message:
 > > -----------
 > > * Check that db connection exists before trying to make query.
 > > * Do not close db connection if db query fails.
 > 
 > Isn't this stuf handled by db_xxxxx modules?

inaki,

the problem with the implementation was, that if db query failed (for
example, because db server was down), allow_trusted code closed the db
connection and then later tried to use the (non-existing) connection
again without creating a new one.

now allow_trusted code does not close the db connection no matter
what happens, but assumes that the low level stuff takes care of the
problems.

-- juha



More information about the sr-dev mailing list