diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-09-15 14:06:07 -0700 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-09-15 18:45:43 -0700 |
commit | 458dda1f15db3db674cf8846b3c08340378a29a8 (patch) | |
tree | 2fbc255a8899ef10fe28424a08ef501a9cab7b6b /source4/dsdb/repl/drepl_out_helpers.c | |
parent | 654672008cb8c1293c7637718a84ac40a4476aa6 (diff) | |
download | samba-458dda1f15db3db674cf8846b3c08340378a29a8.tar.gz samba-458dda1f15db3db674cf8846b3c08340378a29a8.tar.bz2 samba-458dda1f15db3db674cf8846b3c08340378a29a8.zip |
s4-repl: don't do double replication
When we replicate from a remote DC, we need to note the new uSN that
the local changes have resulted in, and modify the uSN that the notify
task uses to determine if it should send a ReplicaSync message back to
the remote DC. Otherwise we end up always triggering a ReplicaSync
every time we replicate from another DC
Diffstat (limited to 'source4/dsdb/repl/drepl_out_helpers.c')
-rw-r--r-- | source4/dsdb/repl/drepl_out_helpers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/dsdb/repl/drepl_out_helpers.c b/source4/dsdb/repl/drepl_out_helpers.c index 168aacdde9..5c63c111f3 100644 --- a/source4/dsdb/repl/drepl_out_helpers.c +++ b/source4/dsdb/repl/drepl_out_helpers.c @@ -414,7 +414,8 @@ static void dreplsrv_op_pull_source_apply_changes_send(struct dreplsrv_op_pull_s &rf1, uptodateness_vector, &drsuapi->gensec_skey, - st, NULL); + st, NULL, + &st->op->source_dsa->notify_uSN); if (!W_ERROR_IS_OK(status)) { DEBUG(0,("Failed to commit objects: %s\n", win_errstr(status))); composite_error(c, werror_to_ntstatus(status)); |