mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
KCC: sort vertices by ndr_packed_guid instead of string guid
ndr_packed guids seems to be what windows uses. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
6c24a7b956
commit
8877716d98
@ -2825,7 +2825,7 @@ def process_edge(graph, examine, internal_edges):
|
||||
vertices = []
|
||||
for v in examine.vertices:
|
||||
# Append a 4-tuple of color, repl cost, guid and vertex
|
||||
vertices.append((v.color, v.repl_info.cost, v.guid, v))
|
||||
vertices.append((v.color, v.repl_info.cost, v.ndrpacked_guid, v))
|
||||
# Sort by color, lower
|
||||
DEBUG("vertices is %s" % vertices)
|
||||
vertices.sort()
|
||||
|
Loading…
Reference in New Issue
Block a user