Commit 9ce470f7 authored by Godefroid Chapelle's avatar Godefroid Chapelle

fix POSKeyError during commit after savepoint rollback

see https://github.com/zopefoundation/ZODB/issues/16
parent 2193f8c5
...@@ -995,6 +995,7 @@ class Connection(ExportImport, object): ...@@ -995,6 +995,7 @@ class Connection(ExportImport, object):
def readCurrent(self, ob): def readCurrent(self, ob):
assert ob._p_jar is self assert ob._p_jar is self
assert ob._p_oid is not None and ob._p_serial is not None assert ob._p_oid is not None and ob._p_serial is not None
if ob._p_serial != z64:
self._readCurrent[ob._p_oid] = ob._p_serial self._readCurrent[ob._p_oid] = ob._p_serial
# persistent.interfaces.IPersistentDatamanager # persistent.interfaces.IPersistentDatamanager
......
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