Skip to content

Commit

Permalink
Fixed: cache lastTid wasn't set when doing full verification
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Jun 9, 2016
1 parent 6d05cc1 commit e63c727
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ZEO/ClientStorage.py
Expand Up @@ -1388,6 +1388,14 @@ def verify_cache(self, server):
for oid, tid in self._cache.contents():
server.verify(oid, tid)
server.endZeoVerify()

if server_tid > self._cache.getLastTid():
# We verified the cache, and got no new invalidations
# while doing so. The records in the cache are valid,
# in that invalid current records were invalidated,
# but the last tid is wrong. Let's fix it:
self._cache.setLastTid(server_tid)

return "full verification"

def invalidateVerify(self, oid):
Expand Down

0 comments on commit e63c727

Please sign in to comment.