Commit 8b6d6c77 authored by Jim Fulton's avatar Jim Fulton

Added transactionalUndo.

parent f7e8342e
......@@ -4,7 +4,7 @@ See Minimal.py for an implementation of Berkeley storage that does not support
undo or versioning.
"""
# $Revision: 1.5 $
# $Revision: 1.6 $
__version__ = '0.1'
import struct
......@@ -619,6 +619,18 @@ class Full(BerkeleyBase):
# Now recurse...
self._decref(roid, lrevid, txn)
def transactionalUndo(self, tid, transaction):
if transaction is not self._transaction:
raise POSException.StorageTransactionError(self, transaction)
oids=[]
self._lock_acquire()
try:
return oids
finally:
self._lock_release()
def undo(self, tid):
# Attempt to undo transaction. NOTE: the current storage interface
# documentation says that this method takes a third argument, which is
......
......@@ -4,7 +4,7 @@ See Minimal.py for an implementation of Berkeley storage that does not support
undo or versioning.
"""
# $Revision: 1.5 $
# $Revision: 1.6 $
__version__ = '0.1'
import struct
......@@ -619,6 +619,18 @@ class Full(BerkeleyBase):
# Now recurse...
self._decref(roid, lrevid, txn)
def transactionalUndo(self, tid, transaction):
if transaction is not self._transaction:
raise POSException.StorageTransactionError(self, transaction)
oids=[]
self._lock_acquire()
try:
return oids
finally:
self._lock_release()
def undo(self, tid):
# Attempt to undo transaction. NOTE: the current storage interface
# documentation says that this method takes a third argument, which is
......
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