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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
ZODB
Commits
bd324a6a
Commit
bd324a6a
authored
Aug 26, 2009
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always use remove_committed to remove blob files.
parent
1c8c8876
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/ZEO/TransactionBuffer.py
src/ZEO/TransactionBuffer.py
+3
-2
No files found.
src/ZEO/TransactionBuffer.py
View file @
bd324a6a
...
...
@@ -21,10 +21,11 @@ is used to store the data until a commit or abort.
# A faster implementation might store trans data in memory until it
# reaches a certain size.
from
threading
import
Lock
import
os
import
cPickle
import
tempfile
from
threading
import
Lock
import
ZODB.blob
class
TransactionBuffer
:
...
...
@@ -116,7 +117,7 @@ class TransactionBuffer:
while
self
.
blobs
:
oid
,
blobfilename
=
self
.
blobs
.
pop
()
if
os
.
path
.
exists
(
blobfilename
):
os
.
remove
(
blobfilename
)
ZODB
.
blob
.
remove_committed
(
blobfilename
)
finally
:
self
.
lock
.
release
()
...
...
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