From 28125851a59e2880d19f441690587f279eab753d Mon Sep 17 00:00:00 2001 From: Noriko Hosoi Date: Thu, 10 Jul 2014 12:17:17 -0700 Subject: [PATCH] Ticket #47852 - Updating winsync one-way sync does not affect the behaviour dynamically Description: The value of the oneWaySync attribute is retrieved from the Windows Sync Agreement outside of the incremental loop. That is, if the value is modified after the incremental loop is started, the change is not applied to the behaviour. This patch picks the value inside the loop and makes the change affect the sync behaviour dynamically. --- ldap/servers/plugins/replication/windows_inc_protocol.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ldap/servers/plugins/replication/windows_inc_protocol.c b/ldap/servers/plugins/replication/windows_inc_protocol.c index f9bc409..d62deec 100644 --- a/ldap/servers/plugins/replication/windows_inc_protocol.c +++ b/ldap/servers/plugins/replication/windows_inc_protocol.c @@ -312,11 +312,10 @@ windows_inc_run(Private_Repl_Protocol *prp) windows_private_load_dirsync_cookie(prp->agmt); - one_way = windows_private_get_one_way(prp->agmt); - do { int rc = 0; + one_way = windows_private_get_one_way(prp->agmt); /* Take action, based on current state, and compute new state. */ switch (current_state) { -- 1.8.3.1