From 8976e1d50d6dc6633af82e05afe51ef41b61c66c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 6 Oct 2011 11:24:28 +1100 Subject: s4-rodc: use the rodc_replica flag on the partition this sets DSDB_REPL_FLAG_PARTIAL_REPLICA when replicating a RODC partition, which tells the replication code to map instanceType to remove the INSTANCE_TYPE_WRITE bit Pair-Programmed-With: Andrew Bartlett --- source4/dsdb/repl/drepl_out_helpers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/dsdb/repl/drepl_out_helpers.c b/source4/dsdb/repl/drepl_out_helpers.c index 7cb642ab5d..71d2c3bc51 100644 --- a/source4/dsdb/repl/drepl_out_helpers.c +++ b/source4/dsdb/repl/drepl_out_helpers.c @@ -424,7 +424,7 @@ static void dreplsrv_op_pull_source_get_changes_trigger(struct tevent_req *req) return; } replica_flags &= ~DRSUAPI_DRS_WRIT_REP; - } else if (service->am_rodc) { + } else if (partition->rodc_replica) { bool for_schema = false; if (ldb_dn_compare_base(ldb_get_schema_basedn(service->samdb), partition->dn) == 0) { for_schema = true; @@ -675,7 +675,7 @@ static void dreplsrv_op_pull_source_apply_changes_trigger(struct tevent_req *req } } - if (partition->partial_replica) { + if (partition->partial_replica || partition->rodc_replica) { dsdb_repl_flags |= DSDB_REPL_FLAG_PARTIAL_REPLICA; } if (state->op->options & DRSUAPI_DRS_FULL_SYNC_IN_PROGRESS) { -- cgit