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
a7a5fab7
Commit
a7a5fab7
authored
Jun 16, 2016
by
Jim Fulton
Committed by
GitHub
Jun 16, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #28 from zopefoundation/27-fix_file_leak
Close opened-file leak in blob cache size check.
parents
7a1a3804
2f691967
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/ZEO/ClientStorage.py
src/ZEO/ClientStorage.py
+2
-2
No files found.
src/ZEO/ClientStorage.py
View file @
a7a5fab7
...
...
@@ -1667,8 +1667,8 @@ def _check_blob_cache_size(blob_dir, target):
logger = logging.getLogger(__name__+'
.
check_blob_cache
')
layout = open(os.path.join(blob_dir, ZODB.blob.LAYOUT_MARKER)
)
.read().strip()
with open(os.path.join(blob_dir, ZODB.blob.LAYOUT_MARKER)) as layout_file:
layout = layout_file
.read().strip()
if not layout == '
zeocache
':
logger.critical("Invalid blob directory layout %s", layout)
raise ValueError("Invalid blob directory layout", layout)
...
...
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