From eb1868628465a24383109f306f1617ca1192e24b Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@lothar.com>
Date: Tue, 8 Dec 2009 09:11:56 -0800
Subject: [PATCH] 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
---
 src/allmydata/mutable/servermap.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
2.45.2