mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-19 04:57:54 +00:00
mutable publish: fix not-enough-shares detection. Refs #1628.
This should match the "fix-1628.darcs.2.patch" attachment on that ticket.
This commit is contained in:
parent
e29323f68f
commit
147670fd89
@ -623,10 +623,9 @@ class Publish:
|
||||
# Can we still successfully publish this file?
|
||||
# TODO: Keep track of outstanding queries before aborting the
|
||||
# process.
|
||||
all_writers = []
|
||||
for shnum, writers in self.writers.iteritems():
|
||||
all_writers.extend(writers)
|
||||
if len(all_writers) < self.required_shares or self.surprised:
|
||||
all_shnums = filter(lambda sh: len(self.writers[sh]) > 0,
|
||||
self.writers.iterkeys())
|
||||
if len(all_shnums) < self.required_shares or self.surprised:
|
||||
return self._failure()
|
||||
|
||||
# Figure out what we need to do next. Each of these needs to
|
||||
|
Loading…
Reference in New Issue
Block a user