Skip to content

Commit

Permalink
Fixed incompatibility with ZODB 5.6.
Browse files Browse the repository at this point in the history
Fixes #35
This applies the fix from #35 (comment)
  • Loading branch information
mauritsvanrees committed Jul 24, 2020
1 parent a3e3afa commit ef639de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Changes
1.5 (unreleased)
----------------

- Fixed incompatibility with ZODB 5.6
(`#35 <https://github.com/zopefoundation/zodbupdate/issues/35>`_)

- Added support for history-free RelStorage
(`#28 <https://github.com/zopefoundation/zodbupdate/issues/28>`_)

Expand Down
3 changes: 2 additions & 1 deletion src/zodbupdate/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import transaction
import zodbupdate.serialize
import zodbupdate.utils
from ZODB.Connection import TransactionMetaData
from ZODB.FileStorage import FileStorage
from ZODB.blob import BlobStorage
from ZODB.interfaces import IStorageCurrentRecordIteration, IStorageIteration, IStorageUndoable
Expand Down Expand Up @@ -55,7 +56,7 @@ def __init__(
self.debug = debug

def __new_transaction(self):
t = transaction.Transaction()
t = TransactionMetaData()
self.storage.tpc_begin(t)
t.note(six.u('Updated factory references using `zodbupdate`.'))
return t
Expand Down

0 comments on commit ef639de

Please sign in to comment.