if ( !repl_user )
#endif
{
- replog( be, op, e->e_dn, e->e_ndn, e );
+ replog( be, op, &e->e_name, &e->e_nname, e );
}
be_entry_release_w( be, conn, op, e );
e = NULL;
if ( !be->be_update_ndn.bv_len || !repl_user )
#endif
{
- replog( be, op, pdn->bv_val, ndn->bv_val, NULL );
+ replog( be, op, pdn, ndn, NULL );
}
}
#ifndef SLAPD_MULTIMASTER
#endif
) {
/* but we log only the ones not from a replicator user */
- replog( be, op, pdn->bv_val, ndn->bv_val, mods );
+ replog( be, op, pdn, ndn, mods );
}
#ifndef SLAPD_MULTIMASTER
#endif
{
if ( (*be->be_modrdn)( be, conn, op, pdn->bv_val, ndn->bv_val,
- pnewrdn->bv_val, deloldrdn, pnewSuperior ? pnewSuperior->bv_val : NULL ) == 0
+ pnewrdn->bv_val, deloldrdn,
+ pnewSuperior ? pnewSuperior->bv_val : NULL ) == 0
#ifdef SLAPD_MULTIMASTER
&& ( !be->be_update_ndn.bv_len || !repl_user )
#endif
moddn.deloldrdn = deloldrdn;
moddn.newsup = pnewSuperior;
- replog( be, op, pdn->bv_val, ndn->bv_val, &moddn );
+ replog( be, op, pdn, ndn, &moddn );
}
#ifndef SLAPD_MULTIMASTER
} else {
* lock.c
*/
-LDAP_SLAPD_F (FILE *) lock_fopen LDAP_P(( const char *fname, const char *type, FILE **lfp ));
+LDAP_SLAPD_F (FILE *) lock_fopen LDAP_P(( const char *fname,
+ const char *type, FILE **lfp ));
LDAP_SLAPD_F (int) lock_fclose LDAP_P(( FILE *fp, FILE *lfp ));
/*
* repl.c
*/
-LDAP_SLAPD_F (int) add_replica_info LDAP_P(( Backend *be, const char *host ));
-LDAP_SLAPD_F (int) add_replica_suffix LDAP_P(( Backend *be, int nr, const char *suffix ));
-LDAP_SLAPD_F (void) replog LDAP_P(( Backend *be, Operation *op, char *dn, char *ndn, void *change ));
+LDAP_SLAPD_F (int) add_replica_info LDAP_P(( Backend *be,
+ const char *host ));
+LDAP_SLAPD_F (int) add_replica_suffix LDAP_P(( Backend *be,
+ int nr, const char *suffix ));
+LDAP_SLAPD_F (void) replog LDAP_P(( Backend *be, Operation *op,
+ struct berval *dn, struct berval *ndn, void *change ));
/*
* referral.c
replog(
Backend *be,
Operation *op,
- char *dn,
- char *ndn,
+ struct berval *dn,
+ struct berval *ndn,
void *change
)
{
return;
}
- for ( i = 0; be->be_replica != NULL && be->be_replica[i] != NULL;
- i++ ) {
+ for ( i = 0; be->be_replica != NULL && be->be_replica[i] != NULL; i++ ) {
/* check if dn's suffix matches legal suffixes, if any */
if ( be->be_replica[i]->ri_nsuffix != NULL ) {
int j;
for ( j = 0; be->be_replica[i]->ri_nsuffix[j]; j++ ) {
- if ( dn_issuffix( ndn, be->be_replica[i]->ri_nsuffix[j]->bv_val ) ) {
+ if ( dnIsSuffix( ndn, be->be_replica[i]->ri_nsuffix[j] ) ) {
break;
}
}
#endif
fprintf( fp, "time: %ld\n", (long) slap_get_time() );
- fprintf( fp, "dn: %s\n", dn );
+ fprintf( fp, "dn: %s\n", dn->bv_val );
switch ( op->o_tag ) {
case LDAP_REQ_EXTENDED:
}
for ( i = 0; ml->sml_bvalues != NULL &&
- ml->sml_bvalues[i] != NULL; i++ ) {
+ ml->sml_bvalues[i] != NULL; i++ )
+ {
char *buf, *bufp;
len = ml->sml_desc->ad_cname.bv_len;
buf = (char *) ch_malloc( len );
bufp = buf;
- ldif_sput( &bufp, LDIF_PUT_VALUE,
- type,
+ ldif_sput( &bufp, LDIF_PUT_VALUE, type,
ml->sml_bvalues[i]->bv_val,
ml->sml_bvalues[i]->bv_len );
*bufp = '\0';