diff options
author | Nathan Kinder <nkinder@redhat.com> | 2008-03-03 18:35:11 +0000 |
---|---|---|
committer | Nathan Kinder <nkinder@redhat.com> | 2008-03-03 18:35:11 +0000 |
commit | 50c377b902c35d3167080c0277b8669e377be0d0 (patch) | |
tree | 3a233488f04d0eec98cf592e5ef9a260cfd6d2fe /ldap/servers | |
parent | fa9a55ae9cb78480446d1f88d5a435be77ecbf87 (diff) | |
download | ds-50c377b902c35d3167080c0277b8669e377be0d0.tar.gz ds-50c377b902c35d3167080c0277b8669e377be0d0.tar.xz ds-50c377b902c35d3167080c0277b8669e377be0d0.zip |
Resolves: 435730
Summary: Allow fractional replication between masters.
Diffstat (limited to 'ldap/servers')
-rw-r--r-- | ldap/servers/plugins/replication/repl5_protocol_util.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/ldap/servers/plugins/replication/repl5_protocol_util.c b/ldap/servers/plugins/replication/repl5_protocol_util.c index dafd7774..4a4114d7 100644 --- a/ldap/servers/plugins/replication/repl5_protocol_util.c +++ b/ldap/servers/plugins/replication/repl5_protocol_util.c @@ -378,27 +378,6 @@ acquire_replica(Private_Repl_Protocol *prp, char *prot_oid, RUV **ruv) 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 { |