diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-09-15 14:06:07 -0700 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-09-15 14:06:07 -0700 |
commit | 80c4b1e43e67249996cea61cc761911ff9fecbde (patch) | |
tree | 165cfe887c5577c15e5792608fe8edec812a04f2 /source4/dsdb/repl/drepl_out_helpers.c | |
parent | 46c99ec2a3781d53138245182345c6c2ddd9a258 (diff) | |
download | samba-80c4b1e43e67249996cea61cc761911ff9fecbde.tar.gz samba-80c4b1e43e67249996cea61cc761911ff9fecbde.tar.bz2 samba-80c4b1e43e67249996cea61cc761911ff9fecbde.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)); |