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
Kirill Smelkov
ZODB
Commits
cc99508b
Commit
cc99508b
authored
Jun 16, 2003
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor optimization and normalization -- wait/waiting.
parent
7dd92633
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/ZEO/ClientStorage.py
src/ZEO/ClientStorage.py
+2
-3
No files found.
src/ZEO/ClientStorage.py
View file @
cc99508b
...
@@ -288,7 +288,6 @@ class ClientStorage:
...
@@ -288,7 +288,6 @@ class ClientStorage:
self
.
_oid
=
'
\
0
\
0
\
0
\
0
\
0
\
0
\
0
\
0
'
self
.
_oid
=
'
\
0
\
0
\
0
\
0
\
0
\
0
\
0
\
0
'
# Decide whether to use non-temporary files
# Decide whether to use non-temporary files
client
=
client
self
.
_cache
=
self
.
ClientCacheClass
(
storage
,
cache_size
,
self
.
_cache
=
self
.
ClientCacheClass
(
storage
,
cache_size
,
client
=
client
,
var
=
var
)
client
=
client
,
var
=
var
)
...
@@ -321,7 +320,7 @@ class ClientStorage:
...
@@ -321,7 +320,7 @@ class ClientStorage:
self
.
_ready
.
wait
(
30
)
self
.
_ready
.
wait
(
30
)
if
self
.
_ready
.
isSet
():
if
self
.
_ready
.
isSet
():
break
break
log2
(
INFO
,
"Wait for cache verification to finish"
)
log2
(
INFO
,
"Wait
ing
for cache verification to finish"
)
else
:
else
:
self
.
_wait_sync
()
self
.
_wait_sync
()
...
@@ -331,7 +330,7 @@ class ClientStorage:
...
@@ -331,7 +330,7 @@ class ClientStorage:
while
1
:
while
1
:
if
self
.
_ready
.
isSet
():
if
self
.
_ready
.
isSet
():
break
break
log2
(
INFO
,
"Wait for cache verification to finish"
)
log2
(
INFO
,
"Wait
ing
for cache verification to finish"
)
if
self
.
_connection
is
None
:
if
self
.
_connection
is
None
:
# If the connection was closed while we were
# If the connection was closed while we were
# waiting for it to become ready, start over.
# waiting for it to become ready, start over.
...
...
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