[Zodb-checkins] CVS: ZODB3/ZEO - ClientStorage.py:1.73.2.7.2.7
Jeremy Hylton
jeremy@zope.com
Tue, 17 Dec 2002 15:57:10 -0500
Update of /cvs-repository/ZODB3/ZEO
In directory cvs.zope.org:/tmp/cvs-serv18387
Modified Files:
Tag: ZODB3-fast-restart-branch
ClientStorage.py
Log Message:
Explicitly open the cache if verify_cache() exits early.
=== ZODB3/ZEO/ClientStorage.py 1.73.2.7.2.6 => 1.73.2.7.2.7 ===
--- ZODB3/ZEO/ClientStorage.py:1.73.2.7.2.6 Tue Dec 17 15:44:59 2002
+++ ZODB3/ZEO/ClientStorage.py Tue Dec 17 15:57:10 2002
@@ -401,7 +401,10 @@
if ltid == self._last_inval_tid:
log2(INFO, "No verification necessary "
"(_last_inval_tid up-to-date)")
+ self._cache.open()
return # No need to verify the cache
+
+ # log some hints about last transaction
log2(INFO, "last inval tid: %r %s"
% (self._last_inval_tid, tid2time(self._last_inval_tid)))
log2(INFO, "last transaction: %r %s" % (ltid, tid2time(ltid)))
@@ -409,6 +412,7 @@
pair = server.getInvalidations(self._last_inval_tid)
if pair is not None:
log2(INFO, "Recovering %d invalidations" % len(pair[1]))
+ self._cache.open()
self.invalidateTransaction(*pair)
return