From: Brian Warner Date: Mon, 7 Dec 2009 06:05:12 +0000 (-0800) Subject: control.py: fix speedtest: use download_best_version (not read) on mutable nodes X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/flags/@manifest?a=commitdiff_plain;h=696cc000d0557bcedca837692f204e753a7b3cba;p=tahoe-lafs%2Ftahoe-lafs.git control.py: fix speedtest: use download_best_version (not read) on mutable nodes --- diff --git a/src/allmydata/control.py b/src/allmydata/control.py index 9fe8e8e7..8c12b034 100644 --- a/src/allmydata/control.py +++ b/src/allmydata/control.py @@ -199,7 +199,10 @@ class SpeedTest: if i >= self.count: return n = self.parent.create_node_from_uri(self.uris[i]) - d1 = n.read(DiscardingConsumer()) + if n.is_mutable(): + d1 = n.download_best_version() + else: + d1 = n.read(DiscardingConsumer()) d1.addCallback(_download_one_file, i+1) return d1 d.addCallback(_download_one_file, 0)