summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2005-05-18 03:17:33 +0000
committerRich Megginson <rmeggins@redhat.com>2005-05-18 03:17:33 +0000
commit199dfec373650ad2d82da24e2db7b6709f00e14f (patch)
treeb14c1e91857d2fdab9d1e6a1a152eb5c9846c7f7
parent24f314b55f95d9ff9e94470d1378e834fc7a2b9b (diff)
downloadds-199dfec373650ad2d82da24e2db7b6709f00e14f.tar.gz
ds-199dfec373650ad2d82da24e2db7b6709f00e14f.tar.xz
ds-199dfec373650ad2d82da24e2db7b6709f00e14f.zip
Only check the read only status of the consumer for the fractional case if the acquire process has been successful thus far.
-rw-r--r--ldap/servers/plugins/replication/repl5_protocol_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ldap/servers/plugins/replication/repl5_protocol_util.c b/ldap/servers/plugins/replication/repl5_protocol_util.c
index d406f79b..4b19bc87 100644
--- a/ldap/servers/plugins/replication/repl5_protocol_util.c
+++ b/ldap/servers/plugins/replication/repl5_protocol_util.c
@@ -365,7 +365,8 @@ acquire_replica(Private_Repl_Protocol *prp, char *prot_oid, RUV **ruv)
*/
/* Check if this is a fractional agreement, we need to
* verify that the consumer is read-only */
- if (agmt_is_fractional(prp->agmt)) {
+ 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 */