]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
KCC: Add more debugging and fix a comment
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 1 Apr 2015 22:15:58 +0000 (11:15 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 29 May 2015 09:08:21 +0000 (11:08 +0200)
It seems I lost my train of thought in that comment.

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>
source4/scripting/bin/samba_kcc

index 55f830d926b7c9489c4defbcb7e1b1b5fdddc79c..69205dcdae030b4e3b218c5f6eaa9fd0976b4dba 100755 (executable)
@@ -1569,8 +1569,8 @@ class KCC(object):
     def add_transports(self, vertex, local_vertex, graph, detect_failed):
 
         # The docs ([MS-ADTS] 6.2.2.3.4.3) say to use local_vertex
-        # here and in the, but using vertex seems to make more
-        # sense. That is, it wants this:
+        # here, but using vertex seems to make more sense. That is,
+        # the docs want this:
         #
         #bh = self.get_bridgehead(vertex.site, vertex.part, transport,
         #                         local_vertex.is_black(), detect_failed)
@@ -3049,6 +3049,10 @@ def test_all_reps_from(lp, creds):
                 else:
                     vertex_colours.append('#0000cc')
                 dot_vertices.append(dsa.dsa_dnstr)
+                if dsa.connect_table:
+                    DEBUG_FN("DSA %s %s connections:\n%s" %
+                             (dsa.dsa_dnstr, len(dsa.connect_table),
+                              [x.from_dnstr for x in dsa.connect_table.values()]))
                 for con in dsa.connect_table.values():
                     if con.is_rodc_topology():
                         colours.append('red')