Revert "fix BlobFile._close_file"

reverts 5d24f7
This commit is contained in:
Jack Robison 2017-08-15 17:48:56 -04:00
parent a1fb5ca352
commit 8786133cd4
No known key found for this signature in database
GPG key ID: 284699E7404E3CFF
2 changed files with 2 additions and 3 deletions

View file

@ -13,7 +13,7 @@ at anytime.
*
### Fixed
* Fixed non-blocking call in `BlobFile._close_writer`
*
*
### Deprecated

View file

@ -273,13 +273,12 @@ class BlobFile(HashBlob):
file_handle.close()
self.readers -= 1
@defer.inlineCallbacks
def _close_writer(self, writer):
if writer.write_handle is not None:
log.debug("Closing %s", str(self))
name = writer.write_handle.name
writer.write_handle.close()
yield threads.deferToThread(os.remove, name)
threads.deferToThread(os.remove, name)
writer.write_handle = None
def _save_verified_blob(self, writer):