Skip to content

Commit

Permalink
Stop looking for revision when past it.
Browse files Browse the repository at this point in the history
  • Loading branch information
vpelletier authored and jmuchemb committed Sep 14, 2016
1 parent b340386 commit ee55201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ZODB/FileStorage/FileStorage.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def loadSerial(self, oid, serial):
if h.tid == serial:
break
pos = h.prev
if not pos:
if h.tid < serial or not pos:
raise POSKeyError(oid)
if h.plen:
return self._file.read(h.plen)
Expand Down

0 comments on commit ee55201

Please sign in to comment.