Commit f0faa0da authored by Christian Theune's avatar Christian Theune

- removed unused "dirty" filename references

parent 28e4533a
......@@ -72,11 +72,6 @@ class BlobStorage(ProxyBase):
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 @@ class BlobStorage(ProxyBase):
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.
......
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