From: Brian Warner Date: Mon, 5 Sep 2011 18:54:04 +0000 (-0700) Subject: retrieve.py: remove vestigal self._validated_readers X-Git-Tag: allmydata-tahoe-1.9.0a2~52 X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/uri/somewhere?a=commitdiff_plain;h=425152c34ead6c3f0563c0e7e5da7dfc62bba14c;p=tahoe-lafs%2Ftahoe-lafs.git retrieve.py: remove vestigal self._validated_readers --- diff --git a/src/allmydata/mutable/retrieve.py b/src/allmydata/mutable/retrieve.py index 865b0e10..100350a0 100644 --- a/src/allmydata/mutable/retrieve.py +++ b/src/allmydata/mutable/retrieve.py @@ -286,8 +286,6 @@ class Retrieve: self.shares = {} # maps shnum to validated blocks self._active_readers = [] # list of active readers for this dl. - self._validated_readers = set() # set of readers that we have - # validated the prefix of self._block_hash_trees = {} # shnum => hashtree # We need one share hash tree for the entire file; its leaves @@ -484,9 +482,8 @@ class Retrieve: for shnum in new_shnums: reader = self.readers[shnum] self._active_readers.append(reader) - self._validated_readers.add(reader) self.log("added reader for share %d" % shnum) - # Each time we validate a reader, we check to see if we need the + # Each time we add a reader, we check to see if we need the # private key. If we do, we politely ask for it and then continue # computing. If we find that we haven't gotten it at the end of # segment decoding, then we'll take more drastic measures.