Unverified Commit df660bb6 authored by Isis Lovecruft's avatar Isis Lovecruft
Browse files

Log a message if there is a duplicate bridge from a sub-hashring.

parent 06f67dc2
......@@ -871,6 +871,10 @@ class BridgeRing(BridgeHolder):
for k in forced + self._getBridgeKeysAt(pos, N):
if k not in keys:
keys.append(k)
else:
logging.debug(
"Got duplicate bridge %r in main hashring for position %r."
% (Util.logSafely(k.encode('hex')), pos.encode('hex')))
keys = keys[:N]
keys.sort()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment