]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
mutable: don't tell server about corruption unless it's really CorruptShareError
authorBrian Warner <warner@lothar.com>
Sat, 7 Jan 2012 22:40:57 +0000 (14:40 -0800)
committerBrian Warner <warner@lothar.com>
Sun, 8 Jan 2012 22:12:45 +0000 (14:12 -0800)
src/allmydata/mutable/retrieve.py

index 202e1ea868f69eb0f929520ec4dd30ddf20e8c6c..055a2d390ea71abfa21c12d29a1e2a9ed172bad5 100644 (file)
@@ -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):