From: Brian Warner Date: Tue, 8 Dec 2009 17:11:56 +0000 (-0800) Subject: mutable/servermap.py: oops, query N+e servers in MODE_WRITE, not k+e X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/using.html?a=commitdiff_plain;h=eb1868628465a24383109f306f1617ca1192e24b;p=tahoe-lafs%2Ftahoe-lafs.git mutable/servermap.py: oops, query N+e servers in MODE_WRITE, not k+e under normal conditions, this wouldn't cause any problems, but if the shares are really sparse (perhaps because new servers were added), then file-modifies might stop looking too early and leave old shares in place --- diff --git a/src/allmydata/mutable/servermap.py b/src/allmydata/mutable/servermap.py index 474779a1..f0b4d352 100644 --- a/src/allmydata/mutable/servermap.py +++ b/src/allmydata/mutable/servermap.py @@ -434,7 +434,7 @@ class ServermapUpdater: if k is None: # make a guess k = 3 - N = self._node.get_required_shares() + N = self._node.get_total_shares() if N is None: N = 10 self.EPSILON = k