diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-11-07 13:22:51 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:45:52 -0500 |
commit | c643b10d09f0083f3bcb437b0960e5053b6f5a64 (patch) | |
tree | 83bd5823e232add53158da14340df71458990623 /source4/wrepl_server/wrepl_out_connection.c | |
parent | c4a0e36143fed4ca2ba29ddc1b52dd6e22d713fb (diff) | |
download | samba-c643b10d09f0083f3bcb437b0960e5053b6f5a64.tar.gz samba-c643b10d09f0083f3bcb437b0960e5053b6f5a64.tar.bz2 samba-c643b10d09f0083f3bcb437b0960e5053b6f5a64.zip |
r11547: - don't do pull replication when pullIntervall is 0
- don't do push replication when pushChangeCount is 0
metze
(This used to be commit 4122e9ec3a4394738fa3c261dc92938ea86c3822)
Diffstat (limited to 'source4/wrepl_server/wrepl_out_connection.c')
-rw-r--r-- | source4/wrepl_server/wrepl_out_connection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/wrepl_server/wrepl_out_connection.c b/source4/wrepl_server/wrepl_out_connection.c index 0d5bfda185..e1bade5f87 100644 --- a/source4/wrepl_server/wrepl_out_connection.c +++ b/source4/wrepl_server/wrepl_out_connection.c @@ -236,12 +236,12 @@ NTSTATUS wreplsrv_setup_out_connections(struct wreplsrv_service *service) struct wreplsrv_partner *cur; for (cur = service->partners; cur; cur = cur->next) { - if (cur->type & WINSREPL_PARTNER_PULL) { + if ((cur->type & WINSREPL_PARTNER_PULL) && cur->pull.interval) { cur->pull.te = event_add_timed(service->task->event_ctx, cur, timeval_zero(), wreplsrv_pull_handler_te, cur); NT_STATUS_HAVE_NO_MEMORY(cur->pull.te); } - if (cur->type & WINSREPL_PARTNER_PUSH) { + if ((cur->type & WINSREPL_PARTNER_PUSH) && cur->push.change_count) { cur->push.te = event_add_timed(service->task->event_ctx, cur, timeval_zero(), wreplsrv_push_handler_te, cur); NT_STATUS_HAVE_NO_MEMORY(cur->push.te); |