]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit
immutable/checker.py: trap ShareVersionIncompatible too. Also, use f.check
authorBrian Warner <warner@lothar.com>
Tue, 24 Feb 2009 05:14:05 +0000 (22:14 -0700)
committerBrian Warner <warner@lothar.com>
Tue, 24 Feb 2009 05:14:05 +0000 (22:14 -0700)
commitf95e9b5964be3e729eeee3fb04fe947e7ef26d8b
tree6e85b8b0ef87421b5a9822eaf784d50c52a070f2
parent9af9d8ae35157f2b854be0168bc8dc43d6e0bf1b
immutable/checker.py: trap ShareVersionIncompatible too. Also, use f.check
instead of examining the value returned by f.trap, because the latter appears
to squash exception types down into their base classes (i.e. since
ShareVersionIncompatible is a subclass of LayoutInvalid,
f.trap(Failure(ShareVersionIncompatible)) == LayoutInvalid).

All this resulted in 'incompatible' shares being misclassified as 'corrupt'.
src/allmydata/immutable/checker.py