[Zodb-checkins] SVN: ZODB/branches/blob-merge-branch/src/ZODB/Blobs/BlobStorage.py - removed unused "dirty" filename references

Christian Theune ct at gocept.com
Sat Feb 25 16:48:31 EST 2006


Log message for revision 65479:
   - removed unused "dirty" filename references
  

Changed:
  U   ZODB/branches/blob-merge-branch/src/ZODB/Blobs/BlobStorage.py

-=-
Modified: ZODB/branches/blob-merge-branch/src/ZODB/Blobs/BlobStorage.py
===================================================================
--- ZODB/branches/blob-merge-branch/src/ZODB/Blobs/BlobStorage.py	2006-02-25 20:52:12 UTC (rev 65478)
+++ ZODB/branches/blob-merge-branch/src/ZODB/Blobs/BlobStorage.py	2006-02-25 21:48:31 UTC (rev 65479)
@@ -72,11 +72,6 @@
             self._lock_release()
         return self._tid
 
-    def _getDirtyFilename(self, oid):
-        """Generate an intermediate filename for two-phase commit.
-        """
-        return self._getCleanFilename(oid, BLOB_DIRTY)
-
     def _getBlobPath(self, oid):
         return os.path.join(self.base_directory,
                             utils.oid_repr(oid)
@@ -104,10 +99,8 @@
         while self.dirty_oids:
             oid, serial = self.dirty_oids.pop()
             clean = self._getCleanFilename(oid, serial)
-            dirty = self._getDirtyFilename(oid, serial)
-            for filename in [clean, dirty]:
-                if os.exists(filename):
-                    os.unlink(filename) 
+            if os.exists(clean):
+                os.unlink(clean) 
 
     def loadBlob(self, oid, serial, version):
         """Return the filename where the blob file can be found.



More information about the Zodb-checkins mailing list