Skip to content

Commit

Permalink
Some interface adjustments
Browse files Browse the repository at this point in the history
undo could return None (and has for ZEO for some time).

storeBlob always returns None if also a IMultiCommitStorage
  • Loading branch information
Jim Fulton committed Jul 2, 2016
1 parent 6035691 commit b466182
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/ZODB/interfaces.py
Expand Up @@ -920,10 +920,13 @@ def undo(transaction_id, transaction):
used elsewhere in the storage APIs.
This method must only be called in the first phase of
two-phase commit (after tpc_begin but before tpc_vote). It
returns a serial (transaction id) and a sequence of object ids
for objects affected by the transaction. The serial is ignored
and may be None.
two-phase commit (after tpc_begin but before tpc_vote).
This returns a serial (transaction id) and a sequence of object
ids for objects affected by the transaction. The serial is
ignored and may be None.
Alternatively, this methos may return None.
"""
# Used by DB (Actually, by TransactionalUndo)

Expand Down Expand Up @@ -1251,6 +1254,9 @@ def storeBlob(oid, oldserial, data, blobfilename, version, transaction):
is raised when an internal error occurs while the storage is
handling the store() call.
Note that the return value is always None if the storage also
implements IMultiCommitStorage.
"""

def loadBlob(oid, serial):
Expand Down

0 comments on commit b466182

Please sign in to comment.