backport ITS#1335

This commit is contained in:
Pierangelo Masarati 2002-04-26 08:57:37 +00:00
parent 7a631b1985
commit 0adfe52f9f
2 changed files with 2 additions and 11 deletions

View File

@ -5,6 +5,7 @@ OpenLDAP 2.0.24 Engineering
Fixed ber_bvstrdup() empty string ("") bug (ITS#1662)
Fixed back-ldbm dn normalization bug in onelevel searches (ITS#1654)
Fixed back-ldbm modrdn root dn check (ITS#1761)
Fixed replog logging without replica (ITS#1335)
Documentation
Updated release documents

View File

@ -83,7 +83,7 @@ replog(
struct replog_moddn *moddn;
char *tmp;
FILE *fp, *lfp;
int len, i, count = 0;
int len, i;
if ( be->be_replogfile == NULL && replogfile == NULL ) {
return;
@ -125,19 +125,9 @@ replog(
}
fprintf( fp, "replica: %s\n", be->be_replica[i]->ri_host );
++count;
}
ch_free( tmp );
if ( count == 0 ) {
/* if no replicas matched, drop the log
* (should we log it anyway?) */
lock_fclose( fp, lfp );
ldap_pvt_thread_mutex_unlock( &replog_mutex );
return;
}
fprintf( fp, "time: %ld\n", (long) slap_get_time() );
fprintf( fp, "dn: %s\n", dn );