SVN: ZODB/trunk/src/ZEO/TransactionBuffer.py Always use remove_committed to remove blob files.

Jim Fulton <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <[email protected]>
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()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.