浏览代码

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 年之前
父节点
当前提交
e2c55059a2
共有 1 个文件被更改,包括 1 次插入2 次删除
  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)
 		{