mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
fix arg format; better trace logging...
This commit is contained in:
parent
906ff0d51a
commit
8129f7e2f2
@ -577,24 +577,22 @@ meta_back_search( Operation *op, SlapReply *rs )
|
|||||||
|
|
||||||
initial_candidates = ncandidates;
|
initial_candidates = ncandidates;
|
||||||
|
|
||||||
#if 0
|
if ( LogTest( LDAP_DEBUG_TRACE ) ) {
|
||||||
{
|
|
||||||
char cnd[BUFSIZ];
|
char cnd[BUFSIZ];
|
||||||
int i;
|
int c;
|
||||||
|
|
||||||
for ( i = 0; i < mi->mi_ntargets; i++ ) {
|
for ( c = 0; c < mi->mi_ntargets; c++ ) {
|
||||||
if ( META_IS_CANDIDATE( &candidates[ i ] ) ) {
|
if ( META_IS_CANDIDATE( &candidates[ c ] ) ) {
|
||||||
cnd[ i ] = '*';
|
cnd[ c ] = '*';
|
||||||
} else {
|
} else {
|
||||||
cnd[ i ] = ' ';
|
cnd[ c ] = ' ';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cnd[ i ] = '\0';
|
cnd[ c ] = '\0';
|
||||||
|
|
||||||
Debug( LDAP_DEBUG_ANY, "%s meta_back_search: ncandidates=%d "
|
Debug( LDAP_DEBUG_TRACE, "%s meta_back_search: ncandidates=%d "
|
||||||
"cnd=\"%s\"\n", op->o_log_prefix, ncandidates, cnd );
|
"cnd=\"%s\"\n", op->o_log_prefix, ncandidates, cnd );
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
if ( initial_candidates == 0 ) {
|
if ( initial_candidates == 0 ) {
|
||||||
/* NOTE: here we are not sending any matchedDN;
|
/* NOTE: here we are not sending any matchedDN;
|
||||||
@ -671,7 +669,7 @@ meta_back_search( Operation *op, SlapReply *rs )
|
|||||||
/* initiate dobind */
|
/* initiate dobind */
|
||||||
retcode = meta_search_dobind_init( op, rs, &mc, i, candidates );
|
retcode = meta_search_dobind_init( op, rs, &mc, i, candidates );
|
||||||
|
|
||||||
Debug( LDAP_DEBUG_TRACE, "%s <<< meta_search_dobind_init[%d]=%d\n",
|
Debug( LDAP_DEBUG_TRACE, "%s <<< meta_search_dobind_init[%ld]=%d\n",
|
||||||
op->o_log_prefix, i, retcode );
|
op->o_log_prefix, i, retcode );
|
||||||
|
|
||||||
switch ( retcode ) {
|
switch ( retcode ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user