From fdca2f6ff47a389cb6300d3ea8327f8486de3c2a Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Sat, 26 Jan 2013 01:53:28 -0800 Subject: [PATCH] dsdb-repl: do not ask to add ref when doing getncchange for an exop Reviewed-by: Andrew Bartlett --- source4/dsdb/repl/drepl_out_helpers.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source4/dsdb/repl/drepl_out_helpers.c b/source4/dsdb/repl/drepl_out_helpers.c index 57205a84260..8ddce322696 100644 --- a/source4/dsdb/repl/drepl_out_helpers.c +++ b/source4/dsdb/repl/drepl_out_helpers.c @@ -439,6 +439,13 @@ static void dreplsrv_op_pull_source_get_changes_trigger(struct tevent_req *req) replica_flags &= ~DRSUAPI_DRS_SPECIAL_SECRET_PROCESSING; } } + if (state->op->extended_op != DRSUAPI_EXOP_NONE) { + /* + * If it's an exop never set the ADD_REF even if it's in + * repsFrom flags. + */ + replica_flags &= ~DRSUAPI_DRS_ADD_REF; + } /* is this a full resync of all objects? */ if (state->op->options & DRSUAPI_DRS_FULL_SYNC_NOW) { -- 2.11.4.GIT