[Erp5-dev] [Erp5-report] r36628 seb - /erp5/trunk/products/ZMySQLDA/DA.py

Vincent Pelletier vincent at nexedi.com
Mon Jun 28 11:31:30 CEST 2010


Le lundi 28 juin 2010 09:20:18, nobody at svn.erp5.org a écrit :
> Fixed cases where two distinct connections where opened for the
> same connector, the same thread, within a single transaction.

Quick note: this was found to happen when unghostifying DA instances, as 
Shared/DC/ZRDB/Connection.py explicitly calls "connect" in __setstate__, 
causing "connect" to be called outside of acquisition context.

As "query" method tries to establish network connection if not available, it 
is just postponed by a few python calls and keeps working.

-- 
Vincent Pelletier



More information about the Erp5-dev mailing list