]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
offloaded.py: delete encoding tempfile when upload is complete
authorBrian Warner <warner@lothar.com>
Thu, 17 Jan 2008 08:15:54 +0000 (01:15 -0700)
committerBrian Warner <warner@lothar.com>
Thu, 17 Jan 2008 08:15:54 +0000 (01:15 -0700)
src/allmydata/offloaded.py

index 8b0145eab2507b44fab76be4a91c12c451b2d258..d1f62ef94c5074ecc69f7ba8b682036f61badc14 100644 (file)
@@ -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