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
1ab797b5
Commit
1ab797b5
authored
Feb 28, 2013
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moar tempfile prefixes for resource leak detection.
parent
10303c07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/ZODB/blob.py
src/ZODB/blob.py
+2
-1
No files found.
src/ZODB/blob.py
View file @
1ab797b5
...
...
@@ -273,7 +273,7 @@ class Blob(persistent.Persistent):
tempdir
=
self
.
_p_jar
.
db
().
_storage
.
temporaryDirectory
()
else
:
tempdir
=
tempfile
.
gettempdir
()
filename
=
utils
.
mktemp
(
dir
=
tempdir
)
filename
=
utils
.
mktemp
(
dir
=
tempdir
,
prefix
=
"BUC"
)
self
.
_p_blob_uncommitted
=
filename
def
cleanup
(
ref
):
...
...
@@ -952,6 +952,7 @@ def copyTransactionsFromTo(source, destination):
pass
if
blobfilename
is
not
None
:
fd
,
name
=
tempfile
.
mkstemp
(
prefix
=
'CTFT'
,
suffix
=
'.tmp'
,
dir
=
destination
.
fshelper
.
temp_dir
)
os
.
close
(
fd
)
with
open
(
blobfilename
,
'rb'
)
as
sf
:
...
...
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