]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit
UNDO: 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)
commit7b990cc9afb4c6b86b33755b355a3184283aed3b
tree1388ef6fdd866406b80522c39d490ec6d3626568
parentfc91837f69be49b03c63149bee9b81ca979a2ba8
UNDO: 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