summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-10-06 11:24:28 +1100
committerAndrew Tridgell <tridge@samba.org>2011-10-06 14:34:21 +1100
commit8976e1d50d6dc6633af82e05afe51ef41b61c66c (patch)
tree946ba1fb028cb219733260c61e977b39b66c249b
parent2a2deeb3b43dcb11f2b604bdd20c1183e87522bb (diff)
downloadsamba-8976e1d50d6dc6633af82e05afe51ef41b61c66c.tar.gz
samba-8976e1d50d6dc6633af82e05afe51ef41b61c66c.tar.bz2
samba-8976e1d50d6dc6633af82e05afe51ef41b61c66c.zip
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 <abartlet@samba.org>
-rw-r--r--source4/dsdb/repl/drepl_out_helpers.c4
1 files 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) {