Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
88606a09
Commit
88606a09
authored
Apr 21, 2011
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comment ZODB patch to tpc_finish
parent
fa1328cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
neo/client/__init__.py
neo/client/__init__.py
+10
-4
No files found.
neo/client/__init__.py
View file @
88606a09
...
...
@@ -12,14 +12,18 @@
#
##############################################################################
# NEO requires ZODB to allow TID to be returned as late as tpc_finish.
# At the moment, no ZODB release include this patch.
# At the moment, no ZODB release include the following patches.
# Later, this must be replaced by some detection mechanism.
needs_patch
=
True
if
1
:
if
needs_patch
:
from
ZODB.Connection
import
Connection
# Allow serial to be returned as late as tpc_finish
#
# This makes possible for storage to allocate serial inside tpc_finish,
# removing the requirement to serialise second commit phase (tpc_vote
# to tpc_finish/tpc_abort).
def
tpc_finish
(
self
,
transaction
):
"""Indicate confirmation that the transaction is done."""
...
...
@@ -50,6 +54,8 @@ if needs_patch:
Connection
.
tpc_finish
=
tpc_finish
###
try
:
if
Connection
.
_nexedi_fix
!=
4
:
raise
Exception
(
"A different ZODB fix is already applied"
)
...
...
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