Skip to content

Commit

Permalink
Fixed undo when adapting IMultiCommitStorages
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Jul 2, 2016
1 parent 76db3de commit 831f56a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ZODB/mvccadapter.py
Expand Up @@ -244,8 +244,11 @@ def undo(self, transaction_id, transaction):
def tpc_vote(self, transaction):
result = self._storage.tpc_vote(transaction)
if result:
for oid, serial in result:
self._undone.add(oid)
if isinstance(result[0], bytes):
self._undone.update(set(result))
else:
for oid, _ in result:
self._undone.add(oid)

def tpc_finish(self, transaction, func = lambda tid: None):

Expand Down

0 comments on commit 831f56a

Please sign in to comment.