Thursday, July 10, 2014

[389-commits] ldap/servers

ldap/servers/plugins/replication/windows_inc_protocol.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit e2c55059a28207a0d288bcfbac4e2f8f07aa4ace
Author: Noriko Hosoi <nhosoi@redhat.com>
Date: Thu Jul 10 12:17:17 2014 -0700

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 rmeggins@redhat.com (Thank you, Rich!!)

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)
{


--
389 commits mailing list
389-commits@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-commits

No comments:

Post a Comment