mutable/servermap.py: oops, query N+e servers in MODE_WRITE, not k+e
authorBrian Warner <warner@lothar.com>
Tue, 8 Dec 2009 17:11:56 +0000 (09:11 -0800)
committerBrian Warner <warner@lothar.com>
Tue, 8 Dec 2009 17:11:56 +0000 (09:11 -0800)
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

index 474779a1ff839b19058c0e365567d8a2ce80276f..f0b4d3520ee6679591f89c335c75b4845e683cf7 100644 (file)
@@ -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