diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2015-06-05 12:14:12 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2015-06-12 06:57:17 +0200 |
commit | 534dfb08fbb55f830a4218a31af7ec7a7afbf041 (patch) | |
tree | 7186ac6be46a2b2470ca11e7c32468078aa59222 /python | |
parent | 218baa67ca20a538922ca301538cfbeb64fc67f8 (diff) | |
download | samba-534dfb08fbb55f830a4218a31af7ec7a7afbf041.tar.gz |
KCC: clarify setup-vertices docstring, remove TODO
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>
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/kcc/graph.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/python/samba/kcc/graph.py b/python/samba/kcc/graph.py index 41f94b46064..ef261294b80 100644 --- a/python/samba/kcc/graph.py +++ b/python/samba/kcc/graph.py @@ -329,6 +329,14 @@ def create_edge_set(graph, transport, site_link_bridge): def setup_vertices(graph): """Initialise vertices in the graph for the Dijkstra's run. + Part of MS-ADTS 6.2.2.3.4.4 + + The schedule and options are set to all-on, so that intersections + with real data defer to that data. + + Refer to the convert_schedule_to_repltimes() docstring for an + explanation of the repltimes schedule values. + :param graph: an IntersiteGraph object :return: None """ @@ -344,7 +352,8 @@ def setup_vertices(graph): v.repl_info.interval = 0 v.repl_info.options = 0xFFFFFFFF - v.repl_info.schedule = None # TODO highly suspicious + # repl_info.schedule == None means "always". + v.repl_info.schedule = None v.repl_info.duration = 84 * 8 v.demoted = False |