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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
ZODB
Commits
abcf2849
Commit
abcf2849
authored
Dec 05, 2008
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplified the code a little.
parent
c3ecc294
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
src/ZEO/StorageServer.py
src/ZEO/StorageServer.py
+9
-10
No files found.
src/ZEO/StorageServer.py
View file @
abcf2849
...
...
@@ -518,15 +518,6 @@ class ZEOStorage:
else
:
return
self
.
_wait
(
lambda
:
self
.
_undo
(
trans_id
))
def
_tpc_begin
(
self
,
txn
,
tid
,
status
):
self
.
locked
=
1
self
.
timeout
.
begin
(
self
)
self
.
stats
.
lock_time
=
time
.
time
()
if
(
tid
is
not
None
)
or
(
status
!=
' '
):
self
.
storage
.
tpc_begin
(
txn
,
tid
,
status
)
else
:
self
.
storage
.
tpc_begin
(
txn
)
def
_store
(
self
,
oid
,
serial
,
data
):
err
=
None
try
:
...
...
@@ -646,7 +637,15 @@ class ZEOStorage:
template
=
"Preparing to commit transaction: %d objects, %d bytes"
self
.
log
(
template
%
(
self
.
txnlog
.
stores
,
self
.
txnlog
.
size
()),
level
=
BLATHER
)
self
.
_tpc_begin
(
self
.
transaction
,
self
.
tid
,
self
.
status
)
self
.
locked
=
1
self
.
timeout
.
begin
(
self
)
self
.
stats
.
lock_time
=
time
.
time
()
if
(
self
.
tid
is
not
None
)
or
(
self
.
status
!=
' '
):
self
.
storage
.
tpc_begin
(
self
.
transaction
,
self
.
tid
,
self
.
status
)
else
:
self
.
storage
.
tpc_begin
(
self
.
transaction
)
loads
,
loader
=
self
.
txnlog
.
get_loader
()
for
i
in
range
(
loads
):
store
=
loader
.
load
()
...
...
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