Browse Source

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.

https://fedorahosted.org/389/ticket/47852

Reviewed by [email protected] (Thank you, Rich!!)
Noriko Hosoi 11 years ago
parent
commit
e2c55059a2
1 changed files with 1 additions and 2 deletions
  1. 1 2
      ldap/servers/plugins/replication/windows_inc_protocol.c

+ 1 - 2
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)
 		{