[Erp5-report] r13672 - /erp5/trunk/products/ZMySQLDA/db.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Mar 26 17:42:30 CEST 2007


Author: vincent
Date: Mon Mar 26 17:42:29 2007
New Revision: 13672

URL: http://svn.erp5.org?rev=13672&view=rev
Log:
Do not close other thread's conections since the same db instance is shared among multiple threads.

Modified:
    erp5/trunk/products/ZMySQLDA/db.py

Modified: erp5/trunk/products/ZMySQLDA/db.py
URL: http://svn.erp5.org/erp5/trunk/products/ZMySQLDA/db.py?rev=13672&r1=13671&r2=13672&view=diff
==============================================================================
--- erp5/trunk/products/ZMySQLDA/db.py (original)
+++ erp5/trunk/products/ZMySQLDA/db.py Mon Mar 26 17:42:29 2007
@@ -219,8 +219,6 @@
       ident = get_ident()
       db = self.db.get(ident)
       if db is None:
-        if len(self.db) != 0:
-          self.cleanupConnections()
         db = self.forceReconnection()
       return db
 




More information about the Erp5-report mailing list