Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
484071b3
Commit
484071b3
authored
Nov 29, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
8e693703
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
lib/zodb.py
lib/zodb.py
+9
-3
No files found.
lib/zodb.py
View file @
484071b3
...
...
@@ -182,11 +182,17 @@ def zconn_at(zconn): # -> tid
# ZODB4
#
# We rely on our patch in 4-nxd branch.
# We rely on our patch in 4-nxd branch that reworks ZODB.Connection to
# implement MVCC via always calling loadBefore(zconn._txn_time) to load objects.
elif
zmajor
==
4
:
assert
'conn:at'
in
ZODB
.
nxd_patches
# XXX error message if not there
return
zconn
.
at
()
assert
'conn:MVCC-via-loadBefore-only'
in
ZODB
.
nxd_patches
if
zconn
.
_mvcc_storage
:
raise
NotImplementedError
(
"Connection.at for IMVCCStorage is not implemented"
)
if
zconn
.
before
is
not
None
:
return
before2at
(
zconn
.
before
)
# historical connection
else
:
return
before2at
(
zconn
.
_txn_time
)
# "current" connection
# ZODB3
else
:
...
...
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