summaryrefslogtreecommitdiff
path: root/source4/wrepl_server/wrepl_periodic.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-12-14 19:19:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:47:23 -0500
commit1d91ad0f73c8dc6c8a06c9bc2633516ac8b32e77 (patch)
tree487a30523c2904365dc6ea5d43647468690ee23e /source4/wrepl_server/wrepl_periodic.c
parentb1e50046657fcb8877b9199919f252f99ea701a0 (diff)
downloadsamba-1d91ad0f73c8dc6c8a06c9bc2633516ac8b32e77.tar.gz
samba-1d91ad0f73c8dc6c8a06c9bc2633516ac8b32e77.tar.bz2
samba-1d91ad0f73c8dc6c8a06c9bc2633516ac8b32e77.zip
r12242: - make the push notifications triggered by the change count
- for now we fake the change count to '1', so we'll still have periodicly triggered push notifies, the interval is the 'wreplsrv:periodic_interval=60' - add the 'pushUseInform' attribute to the wreplPartner objectClass to configure if we'll use WREPL_REPL_INFORM notifies metze (This used to be commit fa1a5660bb2ef7fabd72ad9b993dd91d59ac409e)
Diffstat (limited to 'source4/wrepl_server/wrepl_periodic.c')
-rw-r--r--source4/wrepl_server/wrepl_periodic.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/wrepl_server/wrepl_periodic.c b/source4/wrepl_server/wrepl_periodic.c
index 4ba047d3a0..12e1448139 100644
--- a/source4/wrepl_server/wrepl_periodic.c
+++ b/source4/wrepl_server/wrepl_periodic.c
@@ -37,6 +37,8 @@
static uint32_t wreplsrv_periodic_run(struct wreplsrv_service *service, uint32_t next_interval)
{
+ next_interval = wreplsrv_out_push_run(service, next_interval);
+
DEBUG(2,("wreplsrv_periodic_run: next in %u secs\n", next_interval));
return next_interval;
}
@@ -48,6 +50,7 @@ static void wreplsrv_periodic_handler_te(struct event_context *ev, struct timed_
uint32_t next_interval;
service->periodic.te = NULL;
+ service->periodic.current_event = t;
next_interval = wreplsrv_periodic_run(service, service->config.periodic_interval);