[Fedora-directory-commits] ldapserver/ldap/servers/plugins/replication repl5_protocol_util.c, 1.11, 1.12

Nathan Kinder (nkinder) fedora-directory-commits at redhat.com
Mon Mar 3 18:35:14 UTC 2008


Author: nkinder

Update of /cvs/dirsec/ldapserver/ldap/servers/plugins/replication
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv11136/ldap/servers/plugins/replication

Modified Files:
	repl5_protocol_util.c 
Log Message:
Resolves: 435730
Summary: Allow fractional replication between masters.



Index: repl5_protocol_util.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/plugins/replication/repl5_protocol_util.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- repl5_protocol_util.c	3 Oct 2007 00:55:34 -0000	1.11
+++ repl5_protocol_util.c	3 Mar 2008 18:35:11 -0000	1.12
@@ -378,27 +378,6 @@
 							default:
 								return_value = ACQUIRE_FATAL_ERROR;
 							}
-							/* Now check for fractional compatibility with the replica 
-							 * We need to do the check now because prior to acquiring the
-							 * replica we do not have sufficient access rights to read the replica id 
-							 */
-							/* Check if this is a fractional agreement, we need to
-							 * verify that the consumer is read-only */
-							if ((return_value == ACQUIRE_SUCCESS) &&
-								agmt_is_fractional(prp->agmt)) {
-								crc = conn_replica_is_readonly(conn);
-								if (CONN_IS_NOT_READONLY == crc) {
-									/* This is a fatal error */
-									slapi_log_error(SLAPI_LOG_FATAL, repl_plugin_name,
-													"%s: Unable to acquire replica: "
-													"the agreement is fractional but the replica is not read-only. Fractional agreements must specify a read-only replica "
-													"Replication is aborting.\n",
-													agmt_get_long_name(prp->agmt));
-									prp->last_acquire_response_code = NSDS50_REPL_INTERNAL_ERROR;
-									return_value = ACQUIRE_FATAL_ERROR;
-									goto error;
-								}
-							}
 						}
 						else
 						{




More information about the Fedora-directory-commits mailing list