Lines Matching refs:result
309 add_result_to_cache( LDAP *ld, LDAPMessage *result )
315 result->lm_msgid, result->lm_msgtype, 0 );
323 if ( result->lm_msgtype != LDAP_RES_SEARCH_ENTRY &&
324 result->lm_msgtype != LDAP_RES_SEARCH_RESULT &&
325 result->lm_msgtype != LDAP_RES_SEARCH_REFERENCE &&
326 result->lm_msgtype != LDAP_RES_COMPARE ) {
337 * result to it. if this result completes the results for the
338 * request, add the request/result chain to the cache proper.
342 if ( m->lm_msgid == result->lm_msgid ) {
352 if (( new = msg_dup( result )) != NULLMSG ) {
356 catgets(slapdcat, 1, 98, "artc: result added to cache request chain\n"),
359 if ( result->lm_msgtype == LDAP_RES_SEARCH_RESULT ||
360 result->lm_msgtype == LDAP_RES_COMPARE ) {
362 * this result completes the chain of results
366 err = ldap_result2error( ld, result, 0 );
368 ( result->lm_msgtype == LDAP_RES_COMPARE &&
392 catgets(slapdcat, 1, 99, "artc: not caching result with error %d\n"),
404 catgets(slapdcat, 1, 100, "artc: cached result with error %d\n"),
418 * if found, the corresponding result messages are added to the incoming
502 Debug( LDAP_DEBUG_TRACE, catgets(slapdcat, 1, 106, "cc: result returned from cache\n"), 0, 0, 0 );
621 * now check the dn of each search result