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
nexedi
ZODB
Commits
9f0ad321
Commit
9f0ad321
authored
Sep 11, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use SlowMethodThread wrappers for undoInfo and undoLog.
parent
c8e6d938
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/ZEO/StorageServer.py
src/ZEO/StorageServer.py
+8
-2
No files found.
src/ZEO/StorageServer.py
View file @
9f0ad321
...
...
@@ -147,8 +147,6 @@ class ZEOStorage:
def
setup_delegation
(
self
):
"""Delegate several methods to the storage"""
self
.
undoInfo
=
self
.
__storage
.
undoInfo
self
.
undoLog
=
self
.
__storage
.
undoLog
self
.
versionEmpty
=
self
.
__storage
.
versionEmpty
self
.
versions
=
self
.
__storage
.
versions
self
.
history
=
self
.
__storage
.
history
...
...
@@ -270,6 +268,14 @@ class ZEOStorage:
return
oids
return
()
# undoLog and undoInfo are potentially slow methods
def
undoInfo
(
self
,
first
,
last
,
spec
):
return
run_in_thread
(
self
.
__storage
.
undoInfo
,
first
,
last
,
spec
)
def
undoLog
(
self
,
first
,
last
):
return
run_in_thread
(
self
.
__storage
.
undoLog
,
first
,
last
)
def
tpc_begin
(
self
,
id
,
user
,
description
,
ext
,
tid
,
status
):
if
self
.
_transaction
is
not
None
:
if
self
.
_transaction
.
id
==
id
:
...
...
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