Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
ebbe9fdd
Commit
ebbe9fdd
authored
Jun 15, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed the historical-connection implementation to always use new instances.
parent
ad25595e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/ZODB/Connection.py
src/ZODB/Connection.py
+2
-3
src/ZODB/mvccadapter.py
src/ZODB/mvccadapter.py
+1
-0
No files found.
src/ZODB/Connection.py
View file @
ebbe9fdd
...
@@ -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
}
if
before
:
storage
=
HistoricalStorageAdapter
(
db
.
storage
,
before
)
else
:
storage
=
db
.
_mvcc_storage
.
new_instance
()
storage
=
db
.
_mvcc_storage
.
new_instance
()
if
before
:
storage
=
HistoricalStorageAdapter
(
storage
,
before
)
self
.
_normal_storage
=
self
.
_storage
=
storage
self
.
_normal_storage
=
self
.
_storage
=
storage
self
.
new_oid
=
db
.
new_oid
self
.
new_oid
=
db
.
new_oid
...
...
src/ZODB/mvccadapter.py
View file @
ebbe9fdd
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment