From: Hallvard Furuseth Date: Thu, 30 Dec 2010 23:48:41 +0000 (+0000) Subject: noop commit for ITS#6758: simplify future commits X-Git-Tag: MIGRATION_CVS2GIT~312 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f7a77545ad9accf9164b2edf78ee02a252cad8e2;p=openldap noop commit for ITS#6758: simplify future commits --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index de159d96e9..e650b02b2b 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -6778,9 +6778,11 @@ config_back_db_open( BackendDB *be, ConfigReply *cr ) /* Create schema nodes for included schema... */ if ( cfb->cb_config->c_kids ) { + int rc; c.depth = 0; c.ca_private = cfb->cb_config->c_kids; - if (config_build_schema_inc( &c, ce, op, &rs )) { + rc = config_build_schema_inc( &c, ce, op, &rs ); + if ( rc ) { return -1; } } diff --git a/servers/slapd/overlays/refint.c b/servers/slapd/overlays/refint.c index 1207bfaa49..063bd5c344 100644 --- a/servers/slapd/overlays/refint.c +++ b/servers/slapd/overlays/refint.c @@ -671,7 +671,8 @@ refint_repair( op2.o_dn = op2.o_bd->be_rootdn; op2.o_ndn = op2.o_bd->be_rootndn; slap_op_time( &op2.o_time, &op2.o_tincr ); - if ( ( rc = op2.o_bd->be_modify( &op2, &rs2 ) ) != LDAP_SUCCESS ) { + rc = op2.o_bd->be_modify( &op2, &rs2 ); + if ( rc != LDAP_SUCCESS ) { Debug( LDAP_DEBUG_TRACE, "refint_repair: dependent modify failed: %d\n", rs2.sr_err, 0, 0 ); diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 7fa8e73ea7..0dc00c9427 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -1709,7 +1709,7 @@ syncprov_playlog( Operation *op, SlapReply *rs, sessionlog *sl, fop.o_bd->bd_info = (BackendInfo *)on->on_info; for ( i=ndel; ibd_info = (BackendInfo *)on; } diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index ed85527989..f83d605d6c 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -623,20 +623,22 @@ slap_auxprop_store( op.o_req_dn = op.o_req_ndn; op.orm_modlist = modlist; -retry_dontUseCopy:; - rc = op.o_bd->be_modify( &op, &rs ); + for (;;) { + rc = op.o_bd->be_modify( &op, &rs ); #ifdef SLAP_AUXPROP_DONTUSECOPY - if ( dontUseCopy && - rs.sr_err == LDAP_UNAVAILABLE && - slap_dontUseCopy_ignore ) - { - op.o_bd = dontUseCopy_bd; - op.o_dontUseCopy = SLAP_CONTROL_NONE; - dontUseCopy = 0; - goto retry_dontUseCopy; - } + if ( dontUseCopy && + rs.sr_err == LDAP_UNAVAILABLE && + slap_dontUseCopy_ignore ) + { + op.o_bd = dontUseCopy_bd; + op.o_dontUseCopy = SLAP_CONTROL_NONE; + dontUseCopy = 0; + continue; + } #endif /* SLAP_AUXPROP_DONTUSECOPY */ + break; + } } } slap_mods_free( modlist, 1 );