This creates behaviour not described by ADTS. RODC are now treated as
RED, however they are demoted to the equivalent of WHITE when running
the first half of the algorithm.
The change implies that RED does in fact refer to full-replicas, not
writable replicas.
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
bh = self.get_bridgehead(vertex.site, vertex.part, transport,
partial_replica_okay, detect_failed)
if bh is None:
- found_failed = True
+ if vertex.site.is_rodc_site():
+ vertex.accept_red_red.append(t_guid)
+ else:
+ found_failed = True
continue
vertex.accept_red_red.append(t_guid)
return True
return False
+ def is_rodc_site(self):
+ if len(self.dsa_table) > 0 and len(self.rw_dsa_table) == 0:
+ return True
+ return False
+
def __str__(self):
'''Debug dump string output of class'''
text = "%s:" % self.__class__.__name__