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
722b54b5
Commit
722b54b5
authored
Feb 27, 2006
by
Christian Theune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- refined formatting of logging statement
parent
735edcc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/ZEO/ClientStorage.py
src/ZEO/ClientStorage.py
+4
-2
No files found.
src/ZEO/ClientStorage.py
View file @
722b54b5
...
@@ -968,7 +968,8 @@ class ClientStorage(object):
...
@@ -968,7 +968,8 @@ class ClientStorage(object):
blob_filename
=
self
.
fshelper
.
getBlobFilename
(
oid
,
serial
)
blob_filename
=
self
.
fshelper
.
getBlobFilename
(
oid
,
serial
)
# Case 1: Blob is available already, just use it
# Case 1: Blob is available already, just use it
if
os
.
path
.
exists
(
blob_filename
):
if
os
.
path
.
exists
(
blob_filename
):
log2
(
"Found blob %s/%s in cache."
%
(
oid
,
serial
),
level
=
BLATHER
)
log2
(
"Found blob %s/%s in cache."
%
(
utils
.
repr_to_oid
(
oid
),
utils
.
repr_to_oid
(
serial
)),
level
=
BLATHER
)
return
blob_filename
return
blob_filename
# Case 2,3: Blob might still be downloading or not there yet
# Case 2,3: Blob might still be downloading or not there yet
...
@@ -995,7 +996,8 @@ class ClientStorage(object):
...
@@ -995,7 +996,8 @@ class ClientStorage(object):
# we just take the result.
# we just take the result.
if
os
.
path
.
exists
(
blob_filename
):
if
os
.
path
.
exists
(
blob_filename
):
log2
(
"Found blob %s/%s in cache after it was downloaded "
log2
(
"Found blob %s/%s in cache after it was downloaded "
"from another thread."
%
(
oid
,
serial
),
level
=
BLATHER
)
"from another thread."
%
(
utils
.
repr_to_oid
(
oid
),
utils
.
repr_to_oid
(
serial
)),
level
=
BLATHER
)
return
blob_filename
return
blob_filename
# Otherwise we download and use that
# Otherwise we download and use that
...
...
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