From d2244f2ccf58ca2e2a96f66014fb44a001349f9a Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Thu, 5 Sep 2013 17:33:04 +0100 Subject: [PATCH] Sun Jan 8 22:12:45 GMT 2012 Brian Warner * mutable: don't tell server about corruption unless it's really CorruptShareError --- src/allmydata/mutable/retrieve.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/allmydata/mutable/retrieve.py b/src/allmydata/mutable/retrieve.py index 0845d290..cb9c37f8 100644 --- a/src/allmydata/mutable/retrieve.py +++ b/src/allmydata/mutable/retrieve.py @@ -592,7 +592,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): -- 2.45.2