Commit f0faa0da authored by Christian Theune's avatar Christian Theune

- removed unused "dirty" filename references

parent 28e4533a
...@@ -72,11 +72,6 @@ class BlobStorage(ProxyBase): ...@@ -72,11 +72,6 @@ class BlobStorage(ProxyBase):
self._lock_release() self._lock_release()
return self._tid 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): def _getBlobPath(self, oid):
return os.path.join(self.base_directory, return os.path.join(self.base_directory,
utils.oid_repr(oid) utils.oid_repr(oid)
...@@ -104,10 +99,8 @@ class BlobStorage(ProxyBase): ...@@ -104,10 +99,8 @@ class BlobStorage(ProxyBase):
while self.dirty_oids: while self.dirty_oids:
oid, serial = self.dirty_oids.pop() oid, serial = self.dirty_oids.pop()
clean = self._getCleanFilename(oid, serial) clean = self._getCleanFilename(oid, serial)
dirty = self._getDirtyFilename(oid, serial) if os.exists(clean):
for filename in [clean, dirty]: os.unlink(clean)
if os.exists(filename):
os.unlink(filename)
def loadBlob(self, oid, serial, version): def loadBlob(self, oid, serial, version):
"""Return the filename where the blob file can be found. """Return the filename where the blob file can be found.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment