projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
696cc00
)
mutable/servermap.py: oops, query N+e servers in MODE_WRITE, not k+e
author
Brian Warner
<warner@lothar.com>
Tue, 8 Dec 2009 17:11:56 +0000
(09:11 -0800)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/allmydata/mutable/servermap.py
b/src/allmydata/mutable/servermap.py
index 474779a1ff839b19058c0e365567d8a2ce80276f..f0b4d3520ee6679591f89c335c75b4845e683cf7 100644
(file)
--- 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