Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
5fc2331f
Commit
5fc2331f
authored
Aug 10, 2000
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The storage server failed to call tpc_vote on served storages.
parent
8e080ebb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
src/ZEO/StorageServer.py
src/ZEO/StorageServer.py
+11
-4
No files found.
src/ZEO/StorageServer.py
View file @
5fc2331f
...
...
@@ -83,7 +83,7 @@
#
##############################################################################
__version__
=
"$Revision: 1.1
0
$"
[
11
:
-
2
]
__version__
=
"$Revision: 1.1
1
$"
[
11
:
-
2
]
import
asyncore
,
socket
,
string
,
sys
,
cPickle
,
os
from
smac
import
SizedMessageAsyncConnection
...
...
@@ -114,6 +114,7 @@ class StorageServer(asyncore.dispatcher):
def
__init__
(
self
,
connection
,
storages
):
self
.
__storages
=
storages
for
n
,
s
in
storages
.
items
():
init_storage
(
s
)
self
.
__connections
=
{}
self
.
__get_connections
=
self
.
__connections
.
get
...
...
@@ -362,8 +363,12 @@ class Connection(SizedMessageAsyncConnection):
self
.
message_output
(
's'
+
dump
((
oid
,
newserial
),
1
))
return
_noreturn
def
vote
(
self
):
pass
def
vote
(
self
,
id
):
t
=
self
.
_transaction
if
t
is
None
or
id
!=
t
.
id
:
raise
POSException
.
StorageTransactionError
(
self
,
id
)
return
self
.
__storage
.
tpc_vote
(
t
)
def
undo
(
self
,
transaction_id
):
oids
=
self
.
__storage
.
undo
(
transaction_id
)
self
.
__server
.
invalidate
(
...
...
@@ -454,7 +459,9 @@ class Connection(SizedMessageAsyncConnection):
self
.
__server
.
invalidate
(
self
,
self
.
__storage_id
,
self
.
__invalidated
)
self
.
__invalidated
=
[]
def
init_storage
(
storage
):
if
not
hasattr
(
storage
,
'tpc_vote'
):
storage
.
tpc_vote
=
lambda
*
args
:
None
if
__name__
==
'__main__'
:
import
ZODB.FileStorage
...
...
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