s4-drepl: don't send an UpdateRefs unless its a plain replication
authorAndrew Tridgell <tridge@samba.org>
Mon, 26 Apr 2010 08:43:46 +0000 (18:43 +1000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 26 Apr 2010 09:06:06 +0000 (19:06 +1000)
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/dsdb/repl/drepl_out_helpers.c

index 60dccffb2378644cba8e2038ae291ad0814fb93b..e8d2b24767eaff397a98470108d60aab3d0a4b99 100644 (file)
@@ -527,7 +527,9 @@ static void dreplsrv_op_pull_source_apply_changes_trigger(struct tevent_req *req
           we join the domain, but they quickly expire.  We do it here
           so we can use the already established DRSUAPI pipe
        */
-       dreplsrv_update_refs_trigger(req);
+       if (state->op->extended_op == DRSUAPI_EXOP_NONE) {
+               dreplsrv_update_refs_trigger(req);
+       }
 }
 
 static void dreplsrv_update_refs_done(struct tevent_req *subreq);