Commit ebbe9fdd authored by Jim Fulton's avatar Jim Fulton

Changed the historical-connection implementation to always use new instances.

parent ad25595e
......@@ -103,10 +103,9 @@ class Connection(ExportImport, object):
# Multi-database support
self.connections = {self._db.database_name: self}
if before:
storage = HistoricalStorageAdapter(db.storage, before)
else:
storage = db._mvcc_storage.new_instance()
if before:
storage = HistoricalStorageAdapter(storage, before)
self._normal_storage = self._storage = storage
self.new_oid = db.new_oid
......
......@@ -97,6 +97,7 @@ class MVCCAdapterInstance(Base):
_copy_methods = Base._copy_methods + (
'loadSerial', 'new_oid', 'tpc_vote',
'checkCurrentSerialInTransaction', 'tpc_abort',
'loadBefore',
)
def __init__(self, base):
......
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