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
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
Kirill Smelkov
ZEO
Commits
14d28c12
Commit
14d28c12
authored
Sep 02, 2000
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed storea to *always* return exceptions asyncronously.
This is important since storea is an asynchronous routine.
parent
b3afdce3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
src/ZEO/StorageServer.py
src/ZEO/StorageServer.py
+11
-7
No files found.
src/ZEO/StorageServer.py
View file @
14d28c12
...
...
@@ -83,7 +83,7 @@
#
##############################################################################
__version__
=
"$Revision: 1.1
3
$"
[
11
:
-
2
]
__version__
=
"$Revision: 1.1
4
$"
[
11
:
-
2
]
import
asyncore
,
socket
,
string
,
sys
,
cPickle
,
os
from
smac
import
SizedMessageAsyncConnection
...
...
@@ -389,13 +389,17 @@ class Connection(SizedMessageAsyncConnection):
def
storea
(
self
,
oid
,
serial
,
data
,
version
,
id
,
dump
=
dump
):
t
=
self
.
_transaction
if
t
is
None
or
id
!=
t
.
id
:
raise
POSException
.
StorageTransactionError
(
self
,
id
)
try
:
t
=
self
.
_transaction
if
t
is
None
or
id
!=
t
.
id
:
raise
POSException
.
StorageTransactionError
(
self
,
id
)
try
:
newserial
=
self
.
__storage
.
store
(
oid
,
serial
,
data
,
version
,
t
)
except
POSException
.
ConflictError
,
v
:
newserial
=
v
newserial
=
self
.
__storage
.
store
(
oid
,
serial
,
data
,
version
,
t
)
except
:
# all errors need to be serialized to prevent unexpected
# returns, which would screw up the return handling.
# IOW,
newserial
=
sys
.
exc_info
()[
1
]
else
:
if
serial
!=
'
\
0
\
0
\
0
\
0
\
0
\
0
\
0
\
0
'
:
self
.
__invalidated
.
append
((
oid
,
version
))
...
...
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