Commit d187a86d authored by Jim Fulton's avatar Jim Fulton

fixed a bug in loadBefore

That was made effective by recent changes in ZODB that relied more on
loadBefore for MVCC.

Oddly the change makes this loadBefore match the version it was copied
from, which github says was last changed 13 years ago. (gulp, on
multiple levels).
parent c9d51f54
......@@ -192,7 +192,7 @@ class TemporaryStorage(BaseStorage, ConflictResolvingStorage):
start_tid = tids[i]
j = i + 1
if j == len(tids):
return None # the caller can't deal with current data
end_tid = None
else:
end_tid = tids[j]
data = self.loadSerial(oid, start_tid)
......@@ -298,6 +298,7 @@ class TemporaryStorage(BaseStorage, ConflictResolvingStorage):
self._tmp = []
def _takeOutGarbage(self, oid):
return
# take out the garbage.
referenceCount = self._referenceCount
referenceCount_get = referenceCount.get
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment