Commit cdb5206c authored by Jeremy Hylton's avatar Jeremy Hylton

Sync up with new signature of restore().

XXX This creates a new requirement: If a store implements restore(),
it's iterator() implementation must support the data_txn option.
parent b0eb8604
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
""" """
# Do this portably in the face of checking out with -kv # Do this portably in the face of checking out with -kv
import string import string
__version__ = string.split('$Revision: 1.24 $')[-2:][0] __version__ = string.split('$Revision: 1.25 $')[-2:][0]
import cPickle import cPickle
import ThreadLock, bpthread import ThreadLock, bpthread
...@@ -281,7 +281,8 @@ class BaseStorage(UndoLogCompatible.UndoLogCompatible): ...@@ -281,7 +281,8 @@ class BaseStorage(UndoLogCompatible.UndoLogCompatible):
oid=r.oid oid=r.oid
if verbose: print `oid`, r.version, len(r.data) if verbose: print `oid`, r.version, len(r.data)
if restoring: if restoring:
self.restore(oid, r.serial, r.data, r.version, transaction) self.restore(oid, r.serial, r.data, r.version,
r.data_txn, transaction)
else: else:
pre=preget(oid, None) pre=preget(oid, None)
s=self.store(oid, pre, r.data, r.version, transaction) s=self.store(oid, pre, r.data, r.version, transaction)
......
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