s4/drs: update repsFrom only when we are not in getncchanges extended op
[nivanova/samba.git] / source4 / dsdb / repl / drepl_out_helpers.c
index 8ce9d0f1a3a2a2535dbcea7e863fc5b23b892256..8ffa832eae34bf1d6aceea9148f088fd65bc8e1a 100644 (file)
@@ -522,10 +522,10 @@ static void dreplsrv_op_pull_source_apply_changes_trigger(struct tevent_req *req
                tevent_req_nterror(req, nt_status);
                return;
        }
-
-       /* if it applied fine, we need to update the highwatermark */
-       *state->op->source_dsa->repsFrom1 = rf1;
-
+       if (state->op->extended_op == DRSUAPI_EXOP_NONE) {
+               /* if it applied fine, we need to update the highwatermark */
+               *state->op->source_dsa->repsFrom1 = rf1;
+       }
        /*
         * TODO: update our uptodatevector!
         */