From: Brian Warner Date: Sat, 7 Jan 2012 22:40:57 +0000 (-0800) Subject: mutable: don't tell server about corruption unless it's really CorruptShareError X-Git-Url: https://git.rkrishnan.org/pf/components/com_hotproperty/nxhtml.html?a=commitdiff_plain;h=ca78e6b146867d4f9c98b78a282f73906a0c3668;p=tahoe-lafs%2Ftahoe-lafs.git mutable: don't tell server about corruption unless it's really CorruptShareError --- diff --git a/src/allmydata/mutable/retrieve.py b/src/allmydata/mutable/retrieve.py index 202e1ea8..055a2d39 100644 --- a/src/allmydata/mutable/retrieve.py +++ b/src/allmydata/mutable/retrieve.py @@ -591,7 +591,8 @@ class Retrieve: self._bad_shares.add((server, shnum, f)) self._status.add_problem(server, f) self._last_failure = f - self.notify_server_corruption(server, shnum, str(f.value)) + if f.check(CorruptShareError): + self.notify_server_corruption(server, shnum, str(f.value)) def _download_current_segment(self):