mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
backport ITS#1335
This commit is contained in:
parent
7a631b1985
commit
0adfe52f9f
1
CHANGES
1
CHANGES
@ -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
|
||||
|
||||
|
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user