[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/TransactionBuffer.py Always use remove_committed to remove blob files.
Jim Fulton
jim at zope.com
Wed Aug 26 06:37:21 EDT 2009
Log message for revision 103219:
Always use remove_committed to remove blob files.
Changed:
U ZODB/trunk/src/ZEO/TransactionBuffer.py
-=-
Modified: ZODB/trunk/src/ZEO/TransactionBuffer.py
===================================================================
--- ZODB/trunk/src/ZEO/TransactionBuffer.py 2009-08-26 10:13:22 UTC (rev 103218)
+++ ZODB/trunk/src/ZEO/TransactionBuffer.py 2009-08-26 10:37:21 UTC (rev 103219)
@@ -21,10 +21,11 @@
# 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 @@
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()
More information about the Zodb-checkins
mailing list