From: Brian Warner Date: Thu, 17 Jan 2008 08:15:54 +0000 (-0700) Subject: offloaded.py: delete encoding tempfile when upload is complete X-Git-Tag: allmydata-tahoe-0.8.0~299 X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/priv.html?a=commitdiff_plain;h=0e3b218e7d36cd19522696b5ab9865e56b21c86c;p=tahoe-lafs%2Ftahoe-lafs.git offloaded.py: delete encoding tempfile when upload is complete --- diff --git a/src/allmydata/offloaded.py b/src/allmydata/offloaded.py index 8b0145ea..d1f62ef9 100644 --- a/src/allmydata/offloaded.py +++ b/src/allmydata/offloaded.py @@ -92,6 +92,7 @@ class CHKUploadHelper(Referenceable, upload.CHKUploader): def _finished(self, res): (uri_extension_hash, needed_shares, total_shares, size) = res upload_results = {'uri_extension_hash': uri_extension_hash} + os.unlink(self._encoding_file) self._finished_observers.fire(upload_results) self._helper.upload_finished(self._storage_index) del self._reader