Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
neoppod
Commits
5c5c7d9a
Commit
5c5c7d9a
authored
Oct 06, 2011
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
client: fix missing import in ZODB monkey-patch
parent
965047c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
neo/client/__init__.py
neo/client/__init__.py
+4
-2
No files found.
neo/client/__init__.py
View file @
5c5c7d9a
...
...
@@ -51,10 +51,10 @@ if needs_patch:
Connection
.
tpc_finish
=
tpc_finish
try
:
if
Connection
.
_nexedi_fix
!=
3
:
if
Connection
.
_nexedi_fix
!=
4
:
raise
Exception
(
"A different ZODB fix is already applied"
)
except
AttributeError
:
Connection
.
_nexedi_fix
=
3
Connection
.
_nexedi_fix
=
4
# Whenever an connection is opened (and there's usually an existing one
# in DB pool that can be reused) whereas the transaction is already
...
...
@@ -63,6 +63,8 @@ if needs_patch:
# For example, there's no open transaction when a ZPublisher/Publish
# transaction begins.
import
thread
def
open
(
self
,
*
args
,
**
kw
):
def
_flush_invalidations
():
acquire
=
self
.
_db
.
_a
...
...
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