[Zodb-checkins] CVS: ZODB3/ZEO - ClientStorage.py:1.73.2.7.2.9
Jeremy Hylton
jeremy@zope.com
Tue, 17 Dec 2002 17:11:26 -0500
Update of /cvs-repository/ZODB3/ZEO
In directory cvs.zope.org:/tmp/cvs-serv28379
Modified Files:
Tag: ZODB3-fast-restart-branch
ClientStorage.py
Log Message:
Don't try to invalidate the db if there is no db.
=== ZODB3/ZEO/ClientStorage.py 1.73.2.7.2.8 => 1.73.2.7.2.9 ===
--- ZODB3/ZEO/ClientStorage.py:1.73.2.7.2.8 Tue Dec 17 16:00:02 2002
+++ ZODB3/ZEO/ClientStorage.py Tue Dec 17 17:11:25 2002
@@ -835,12 +835,8 @@
def invalidateTransaction(self, tid, args):
"""Invalidate objects modified by tid."""
self._cache.setLastTid(tid)
+ db = self._db
for oid, version in args:
self._cache.invalidate(oid, version=version)
- try:
- self._db.invalidate(oid, version=version)
- except AttributeError, msg:
- log2(PROBLEM,
- "Invalidate(%s, %s) failed for _db: %s" % (repr(oid),
- repr(version),
- msg))
+ if db is not None:
+ db.invalidate(oid, version=version)