Skip to content

Commit

Permalink
Fixed, _load_oid wasn't cleared if loadBefore returned None.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Jun 6, 2016
1 parent e514164 commit 14adf5a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/ZEO/ClientStorage.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,12 +845,11 @@ def loadBefore(self, oid, tid):

result = self._server.loadBefore(oid, tid)

if result:
with self._lock: # for atomic processing of invalidations
if self._load_status:
data, tid, end = result
self._cache.store(oid, tid, end, data)
self._load_oid = None
with self._lock: # for atomic processing of invalidations
if result and self._load_status:
data, tid, end = result
self._cache.store(oid, tid, end, data)
self._load_oid = None

return result

Expand Down

0 comments on commit 14adf5a

Please sign in to comment.