]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit
mutable/retrieve.py: rewrite partial-read handling 177/head
authorBrian Warner <warner@lothar.com>
Tue, 28 Jul 2015 17:11:47 +0000 (10:11 -0700)
committerBrian Warner <warner@lothar.com>
Tue, 28 Jul 2015 17:13:32 +0000 (10:13 -0700)
commit89e9076c41420a4145ae9a1db236dc2a1eb41259
tree49b1d32317196abd1a93d62f4f650f6dc801d46b
parent46d7085dfe756637ff142fc72bc2f69931fb3425
mutable/retrieve.py: rewrite partial-read handling

This should tolerate offset/size combinations that read the last byte of
the file, something which was broken before. It quits early in the case
of zero-byte reads, to simplify the resulting "which segments do I need"
logic. Probably addresses ticket:2459.
src/allmydata/mutable/retrieve.py