s4-drs: allow getncchanges requests to non WRIT_REP partitions for extended ops
authorAndrew Tridgell <tridge@samba.org>
Mon, 26 Apr 2010 06:44:44 +0000 (16:44 +1000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 26 Apr 2010 09:06:07 +0000 (19:06 +1000)
Needed for RID allocation

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/dsdb/repl/drepl_out_helpers.c

index e8d2b24767eaff397a98470108d60aab3d0a4b99..52b519c924afad3d03d19e79dda72a4c464b9552 100644 (file)
@@ -272,7 +272,8 @@ static void dreplsrv_op_pull_source_get_changes_trigger(struct tevent_req *req)
        struct drsuapi_DsReplicaCursorCtrEx *uptodateness_vector;
        struct tevent_req *subreq;
 
-       if ((rf1->replica_flags & DRSUAPI_DRS_WRIT_REP) == 0) {
+       if ((rf1->replica_flags & DRSUAPI_DRS_WRIT_REP) == 0 &&
+           state->op->extended_op == DRSUAPI_EXOP_NONE) {
                return;
        }