[Zodb-checkins] CVS: Zope3/src/zodb - db.py:1.15

Jeremy Hylton jeremy@zope.com
Thu, 10 Apr 2003 13:27:51 -0400


Update of /cvs-repository/Zope3/src/zodb
In directory cvs.zope.org:/tmp/cvs-serv29147

Modified Files:
	db.py 
Log Message:
Closing a database connection now closes its connections.

Also release references to the connections for good measure.


=== Zope3/src/zodb/db.py 1.14 => 1.15 ===
--- Zope3/src/zodb/db.py:1.14	Thu Mar 13 17:11:34 2003
+++ Zope3/src/zodb/db.py	Thu Apr 10 13:27:50 2003
@@ -139,6 +139,10 @@
         AbortVersion(self, version)
 
     def close(self):
+        for c in self._allocated:
+            c.close()
+        del self._allocated[:]
+        del self._pool[:]
         self._storage.close()
 
     def commitVersion(self, source, destination=''):