summaryrefslogtreecommitdiffstats
path: root/source4/dsdb/repl/drepl_service.c
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2013-05-15 04:46:33 -0700
committerStefan Metzmacher <metze@samba.org>2013-05-15 14:31:40 +0200
commit54f4536980d86faf532708c92890dd9e8b09667a (patch)
tree7337fb672061b5a045432c2ad229cfe04f4413ce /source4/dsdb/repl/drepl_service.c
parent8c3fa009ca6e80bf6e8f9daf786b3ec490c735af (diff)
downloadsamba-54f4536980d86faf532708c92890dd9e8b09667a.tar.gz
samba-54f4536980d86faf532708c92890dd9e8b09667a.tar.xz
samba-54f4536980d86faf532708c92890dd9e8b09667a.zip
dsdb-drepl: create a new schedulable event for running pending operations
So instead of running dreplsrv_periodic_schedule when receiving a DRS_REPLICA_SYNC request which will force the DC to look for changes with all the DC it usually replicate to, we reduce it to the DC specified in the DRS_REPLICA_SYNC request. It will allow also to do have the correct options as set by the client who send the DRS_REPLICA_SYNC. Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/dsdb/repl/drepl_service.c')
-rw-r--r--source4/dsdb/repl/drepl_service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/repl/drepl_service.c b/source4/dsdb/repl/drepl_service.c
index 3d28676b8f..bd333779fa 100644
--- a/source4/dsdb/repl/drepl_service.c
+++ b/source4/dsdb/repl/drepl_service.c
@@ -338,7 +338,7 @@ static NTSTATUS drepl_replica_sync(struct irpc_message *msg,
* schedule replication event to force
* replication as soon as possible
*/
- dreplsrv_periodic_schedule(service, 0);
+ dreplsrv_pendingops_schedule(service, 0);
done:
return NT_STATUS_OK;