From 696cc000d0557bcedca837692f204e753a7b3cba Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Sun, 6 Dec 2009 22:05:12 -0800 Subject: [PATCH] control.py: fix speedtest: use download_best_version (not read) on mutable nodes --- src/allmydata/control.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.45.2