mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-03-30 23:36:03 +00:00
Re-enable sorting.
This commit is contained in:
parent
7569617e47
commit
f5f0ce2477
@ -187,7 +187,7 @@ class MutableChecker(object):
|
||||
if self.bad_shares:
|
||||
report.append("Corrupt Shares:")
|
||||
summary.append("Corrupt Shares:")
|
||||
for (server, shnum, f) in self.bad_shares:
|
||||
for (server, shnum, f) in sorted(self.bad_shares, key=id):
|
||||
serverid = server.get_serverid()
|
||||
locator = (server, self._storage_index, shnum)
|
||||
corrupt_share_locators.append(locator)
|
||||
|
@ -901,7 +901,7 @@ class Publish(object):
|
||||
|
||||
def log_goal(self, goal, message=""):
|
||||
logmsg = [message]
|
||||
for (shnum, server) in [(s,p) for (p,s) in goal]:
|
||||
for (shnum, server) in sorted([(s,p) for (p,s) in goal]):
|
||||
logmsg.append("sh%d to [%s]" % (shnum, server.get_name()))
|
||||
self.log("current goal: %s" % (", ".join(logmsg)), level=log.NOISY)
|
||||
self.log("we are planning to push new seqnum=#%d" % self._new_seqnum,
|
||||
|
Loading…
x
Reference in New Issue
Block a user