[Zodb-checkins] CVS: ZODB3/ZODB - Connection.py:1.98.2.1
Jeremy Hylton
jeremy at zope.com
Mon Sep 8 12:20:50 EDT 2003
Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv21617
Modified Files:
Tag: ZODB3-3_2-branch
Connection.py
Log Message:
Only clear the cache if it exists.
=== ZODB3/ZODB/Connection.py 1.98 => 1.98.2.1 ===
--- ZODB3/ZODB/Connection.py:1.98 Fri Jun 13 17:53:08 2003
+++ ZODB3/ZODB/Connection.py Mon Sep 8 11:20:48 2003
@@ -136,8 +136,8 @@
# Explicitly remove references from the connection to its
# cache and to the root object, because they refer back to the
# connection.
- self._cache.clear()
- self._cache = None
+ if self._cache is not None:
+ self._cache.clear()
self._incrgc = None
self.cacheGC = None
self._root_ = None
More information about the Zodb-checkins
mailing list