#ifdef NEW_LOGGING
LDAP_LOG ( INDEX, RESULTS,
- "=> bdb_filter_candidates: id=%ld first=%ld last=%ld\n",
+ "<= bdb_filter_candidates: id=%ld first=%ld last=%ld\n",
(long)ids[0], (long)BDB_IDL_FIRST( ids ), (long) BDB_IDL_LAST( ids ));
#else
Debug( LDAP_DEBUG_FILTER,
}
}
- if( rc ) {
+ if( rc == LDAP_SUCCESS ) {
#ifdef NEW_LOGGING
LDAP_LOG ( INDEX, RESULTS,
"<= bdb_list_candidates: id=%ld first=%ld last=%ld\n",
if( rc != LDAP_SUCCESS ) {
#ifdef NEW_LOGGING
LDAP_LOG ( INDEX, RESULTS,
- "=> bdb_presence_candidates: index_parm returned=%d\n", rc, 0, 0 );
+ "<= bdb_presence_candidates: index_param returned=%d\n", rc, 0, 0 );
#else
Debug( LDAP_DEBUG_TRACE,
"<= bdb_presence_candidates: index_param returned=%d\n",
MatchingRule *mr;
#ifdef NEW_LOGGING
- LDAP_LOG ( INDEX, ENTRY, "=> equality_candidates\n", 0, 0, 0 );
+ LDAP_LOG ( INDEX, ENTRY, "=> bdb_equality_candidates\n", 0, 0, 0 );
#else
Debug( LDAP_DEBUG_TRACE, "=> bdb_equality_candidates\n", 0, 0, 0 );
#endif
if( rc != LDAP_SUCCESS ) {
#ifdef NEW_LOGGING
LDAP_LOG ( INDEX, RESULTS,
- "=> bdb_equality_candidates: index_param failed (%d)\n", rc, 0, 0);
+ "<= bdb_equality_candidates: index_param failed (%d)\n", rc, 0, 0);
#else
Debug( LDAP_DEBUG_ANY,
"<= bdb_equality_candidates: index_param failed (%d)\n",
if ( db == NULL ) {
#ifdef NEW_LOGGING
LDAP_LOG(INDEX, RESULTS,
- "=> bdb_equality_candidates: not indexed\n", 0, 0, 0 );
+ "<= bdb_equality_candidates: not indexed\n", 0, 0, 0 );
#else
Debug( LDAP_DEBUG_ANY,
"<= bdb_equality_candidates: not indexed\n", 0, 0, 0 );
if( rc != LDAP_SUCCESS ) {
#ifdef NEW_LOGGING
LDAP_LOG ( INDEX, RESULTS,
- "=> bdb_equality_candidates: MR filter failed (%d)\n", rc, 0, 0);
+ "<= bdb_equality_candidates: (%s) MR filter failed (%d)\n",
+ prefix.bv_val, rc, 0 );
#else
Debug( LDAP_DEBUG_TRACE,
- "<= bdb_equality_candidates: MR filter failed (%d)\n",
- rc, 0, 0 );
+ "<= bdb_equality_candidates: (%s) MR filter failed (%d)\n",
+ prefix.bv_val, rc, 0 );
#endif
return rc;
}
if( keys == NULL ) {
#ifdef NEW_LOGGING
LDAP_LOG ( INDEX, RESULTS,
- "=> bdb_equality_candidates: no keys\n", 0, 0, 0 );
+ "<= bdb_equality_candidates: no keys\n", 0, 0, 0 );
#else
Debug( LDAP_DEBUG_TRACE,
"<= bdb_equality_candidates: no keys\n",
"<= bdb_equality_candidates: key read failed (%d)\n", rc, 0, 0);
#else
Debug( LDAP_DEBUG_TRACE,
- "<= bdb_equality_candidates key read failed (%d)\n",
+ "<= bdb_equality_candidates: key read failed (%d)\n",
rc, 0, 0 );
#endif
break;
if( BDB_IDL_IS_ZERO( tmp ) ) {
#ifdef NEW_LOGGING
- LDAP_LOG ( INDEX, RESULTS, "=> bdb_equality_candidates: NULL\n", 0, 0, 0);
+ LDAP_LOG ( INDEX, RESULTS,
+ "<= bdb_equality_candidates: NULL\n", 0, 0, 0);
#else
Debug( LDAP_DEBUG_TRACE,
- "<= bdb_equality_candidates NULL\n",
+ "<= bdb_equality_candidates: NULL\n",
0, 0, 0 );
#endif
BDB_IDL_ZERO( ids );
(long) BDB_IDL_LAST( ids ) );
#else
Debug( LDAP_DEBUG_TRACE,
- "<= bdb_equality_candidates id=%ld, first=%ld, last=%ld\n",
+ "<= bdb_equality_candidates: id=%ld, first=%ld, last=%ld\n",
(long) ids[0],
(long) BDB_IDL_FIRST(ids),
(long) BDB_IDL_LAST(ids) );
if( rc != LDAP_SUCCESS ) {
#ifdef NEW_LOGGING
LDAP_LOG ( INDEX, RESULTS,
- "<= bdb_approx_candidates: MR filter failed (%d)\n", rc, 0, 0 );
+ "<= bdb_approx_candidates: (%s) MR filter failed (%d)\n",
+ prefix.bv_val, rc, 0 );
#else
Debug( LDAP_DEBUG_TRACE,
"<= bdb_approx_candidates: (%s) MR filter failed (%d)\n",
"<= bdb_substring_candidates: not indexed\n", 0, 0, 0 );
#else
Debug( LDAP_DEBUG_ANY,
- "<= bdb_substring_candidates not indexed\n",
+ "<= bdb_substring_candidates: not indexed\n",
0, 0, 0 );
#endif
return -1;
if( keys == NULL ) {
#ifdef NEW_LOGGING
LDAP_LOG ( INDEX, RESULTS,
- "<= bdb_substring_candidates: (%d) MR filter failed (%s)\n",
+ "<= bdb_substring_candidates: (0x%04lx) no keys (%s)\n",
mask, sub->sa_desc->ad_cname.bv_val, 0 );
#else
Debug( LDAP_DEBUG_TRACE,
LDAP_LOG ( INDEX, RESULTS,
"<= bdb_substring_candidates: key read failed (%d)\n", rc, 0,0);
#else
- Debug( LDAP_DEBUG_TRACE, "<= bdb_substring_candidates key read failed (%d)\n",
+ Debug( LDAP_DEBUG_TRACE, "<= bdb_substring_candidates: key read failed (%d)\n",
rc, 0, 0 );
#endif
break;
LDAP_LOG ( INDEX, RESULTS,
"<= bdb_substring_candidates: NULL \n", 0, 0, 0 );
#else
- Debug( LDAP_DEBUG_TRACE, "<= bdb_substring_candidates NULL\n",
+ Debug( LDAP_DEBUG_TRACE, "<= bdb_substring_candidates: NULL\n",
0, 0, 0 );
#endif
BDB_IDL_ZERO( ids );
(long) ids[0], (long) BDB_IDL_FIRST( ids ),
(long) BDB_IDL_LAST( ids ) );
#else
- Debug( LDAP_DEBUG_TRACE, "<= bdb_substring_candidates %ld, first=%ld, last=%ld\n",
+ Debug( LDAP_DEBUG_TRACE, "<= bdb_substring_candidates: %ld, first=%ld, last=%ld\n",
(long) ids[0],
(long) BDB_IDL_FIRST(ids),
(long) BDB_IDL_LAST(ids) );