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

fix POSKeyError during commit after savepoint rollback

see https://github.com/zopefoundation/ZODB/issues/16
parent 8ef6f470
...@@ -997,7 +997,8 @@ class Connection(ExportImport, object): ...@@ -997,7 +997,8 @@ 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
self._readCurrent[ob._p_oid] = ob._p_serial if ob._p_serial != z64:
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