From ca78e6b146867d4f9c98b78a282f73906a0c3668 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Sat, 7 Jan 2012 14:40:57 -0800 Subject: [PATCH] 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 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): -- 2.45.2