]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit
SegmentFetcher: use new diversity-seeking share-selection algorithm, and
authorBrian Warner <warner@lothar.com>
Wed, 1 Sep 2010 01:37:02 +0000 (18:37 -0700)
committerBrian Warner <warner@lothar.com>
Wed, 1 Sep 2010 01:37:02 +0000 (18:37 -0700)
commit00e9e4e6760021a16b17e91934e481fee108c6a2
tree80d1dfb8be4d51cc91dd1df739dc9d1cd3b343a3
parentc89a464510394089672d4f937c9707d5ca5e5ca9
SegmentFetcher: use new diversity-seeking share-selection algorithm, and
deliver all shares at once instead of feeding them out one-at-a-time.

Also fix distribution of real-number-of-segments information: now all
CommonShares (not just the ones used for the first segment) get a
correctly-sized hashtree. Previously, the late ones might not, which would
make them crash and get dropped (causing the download to fail if the initial
set were insufficient, perhaps because one of their servers went away).

Update tests, add some TODO notes, improve variable names and comments.
Improve logging: add logparents, set more appropriate levels.
src/allmydata/immutable/downloader/fetcher.py
src/allmydata/immutable/downloader/finder.py
src/allmydata/immutable/downloader/node.py
src/allmydata/immutable/downloader/share.py
src/allmydata/test/test_cli.py
src/allmydata/test/test_download.py
src/allmydata/test/test_immutable.py
src/allmydata/test/test_web.py