]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit
offloaded: close reader before removing its file
authorrobk-tahoe <robk-tahoe@allmydata.com>
Fri, 18 Jan 2008 00:36:28 +0000 (17:36 -0700)
committerrobk-tahoe <robk-tahoe@allmydata.com>
Fri, 18 Jan 2008 00:36:28 +0000 (17:36 -0700)
commit46154beace3d53f85b10971c46fef0782af2521e
tree89d727257144d6856b6c39b6e6750e66cc456381
parente9307d3fdafca2bc9087d2fd8b7fb3463f161558
offloaded: close reader before removing its file

unlinking a file before closing it is not portable. it works on unix, but fails
since an open file holds a lock on windows.

this closes the reader before trying to unlink the encoding file within the
CHKUploadHelper.
src/allmydata/offloaded.py