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
05e7997f
Commit
05e7997f
authored
Jan 11, 2001
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed ZServer dependence.
parent
ecc0e8db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
src/ZEO/ClientStorage.py
src/ZEO/ClientStorage.py
+10
-7
No files found.
src/ZEO/ClientStorage.py
View file @
05e7997f
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Network ZODB storage client
"""
__version__
=
'$Revision: 1.2
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
5
$'
[
11
:
-
2
]
import
struct
,
time
,
os
,
socket
,
string
,
Sync
,
zrpc
,
ClientCache
import
tempfile
,
Invalidator
,
ExtensionClass
,
thread
...
...
@@ -245,8 +245,8 @@ class ClientStorage(ExtensionClass.Base, BaseStorage.BaseStorage):
finally
:
self
.
_lock_release
()
if
self
.
_async
:
import
ZServer.medusa.
asyncore
self
.
becomeAsync
(
ZServer
.
medusa
.
asyncore
.
socket_map
)
import
asyncore
self
.
becomeAsync
(
asyncore
.
socket_map
)
### Is there a race condition between notifyConnected and
...
...
@@ -274,10 +274,7 @@ class ClientStorage(ExtensionClass.Base, BaseStorage.BaseStorage):
try
:
self
.
_async
=
1
if
self
.
_connected
:
import
ZServer.PubCore.ZEvent
self
.
_call
.
setLoop
(
map
,
ZServer
.
PubCore
.
ZEvent
.
Wakeup
)
self
.
_call
.
setLoop
(
map
,
getWakeup
())
self
.
__begin
=
'tpc_begin'
finally
:
self
.
_lock_release
()
...
...
@@ -562,3 +559,9 @@ class ClientStorage(ExtensionClass.Base, BaseStorage.BaseStorage):
try
:
return
self
.
_call
(
'versions'
,
max
)
finally
:
self
.
_lock_release
()
def
getWakeup
(
_w
=
[]):
if
_w
:
return
_w
[
0
]
import
trigger
t
=
trigger
.
trigger
().
pull_trigger
_w
.
append
(
t
)
return
t
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