s4-drepl: Use tevent_schedule_immediate() in DsReplicaSync handler
authorAndrew Bartlett <abartlet@samba.org>
Fri, 21 Jul 2017 05:52:04 +0000 (17:52 +1200)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Jul 2017 15:45:12 +0000 (17:45 +0200)
commitaf3d88efad58cc22656fb46e5544eba9885fcbb3
tree5736f6b270b07d6f782fa86073fafd753b642f71
parenta06ae5fc7ee5d061e39401ed945d31ebcf6e9efb
s4-drepl: Use tevent_schedule_immediate() in DsReplicaSync handler

When we are sent a DsReplicaSync() we should work on inbound replication
(ideally from the requested source, but so far we just start the whole queue)
right away, not after 1 second.

We should also target inbound replication, not any outbound replication
notification that may happen to be due.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12921

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/dsdb/repl/drepl_periodic.c
source4/dsdb/repl/drepl_service.c
source4/dsdb/repl/drepl_service.h