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