Home | History | Annotate | Download | only in back-asyncmeta

Lines Matching defs:candidates

57 	SlapReply *candidates = bc->candidates;
59 if ( !META_IS_CANDIDATE( &candidates[ i ] ) ) {
62 if (candidates[ i ].sr_msgid != META_MSGID_IGNORE ||
63 candidates[ i ].sr_type != REP_RESULT) {
500 SlapReply *candidates = bc->candidates;
508 if ( META_IS_CANDIDATE( &candidates[ i ] )
509 && candidates[ i ].sr_matched != NULL )
519 && candidates[ i ].sr_err == LDAP_NO_SUCH_OBJECT
522 free( (char *)candidates[ i ].sr_matched );
523 candidates[ i ].sr_matched = NULL;
527 ber_str2bv( candidates[ i ].sr_matched, 0, 0, &bv );
546 if ( candidates[ i ].sr_matched != NULL ) {
547 free( (char *)candidates[ i ].sr_matched );
548 candidates[ i ].sr_matched = NULL;
579 if ( !META_IS_CANDIDATE( &candidates[ i ] ) ) {
583 if ( candidates[ i ].sr_err != LDAP_SUCCESS
584 && candidates[ i ].sr_err != LDAP_NO_SUCH_OBJECT )
586 sres = candidates[ i ].sr_err;
598 rs->sr_text = ( sres == LDAP_SUCCESS ? NULL : candidates[candidate].sr_text );
650 if (bc->candidates[candidate].sr_msgid == META_MSGID_NEED_BIND)
651 bc->candidates[candidate].sr_msgid = META_MSGID_GOT_BIND;
652 if (bc->candidates[candidate].sr_msgid != META_MSGID_GOT_BIND || bc->bc_active > 0 || bc->op->o_abandon > 0) {
662 bc->candidates[ candidate ].sr_msgid = META_MSGID_IGNORE;
663 bc->candidates[ candidate ].sr_type = REP_RESULT;
664 bc->candidates[ candidate ].sr_err = bc->rs.sr_err;
695 if (bc->candidates[candidate].sr_msgid != META_MSGID_NEED_BIND
699 bc->candidates[ candidate ].sr_msgid = META_MSGID_IGNORE;
700 bc->candidates[ candidate ].sr_type = REP_RESULT;
701 bc->candidates[ candidate ].sr_err = bind_result->sr_err;
750 SlapReply *candidates;
767 candidates = bc->candidates;
777 if ( candidates[ i ].sr_type == REP_INTERMEDIATE ) {
779 candidates[ i ].sr_type = REP_RESULT;
782 candidates[ i ].sr_nentries++;
808 if ( candidates[ i ].sr_type == REP_INTERMEDIATE ) {
810 candidates[ i ].sr_type = REP_RESULT;
866 if ( candidates[ i ].sr_type == REP_INTERMEDIATE ) {
868 candidates[ i ].sr_type = REP_RESULT;
881 candidates[ i ].sr_type = REP_RESULT;
912 candidates[ i ].sr_type = REP_RESULT;
913 candidates[ i ].sr_msgid = META_MSGID_IGNORE;
925 &candidates[ i ].sr_err,
926 (char **)&candidates[ i ].sr_matched,
927 (char **)&candidates[ i ].sr_text,
929 &ctrls /* &candidates[ i ].sr_ctrls (unused) */ ,
932 candidates[ i ].sr_err = rs->sr_err;
933 sres = slap_map_api2result( &candidates[ i ] );
934 candidates[ i ].sr_type = REP_RESULT;
938 rs->sr_err = candidates[ i ].sr_err;
941 if ( candidates[ i ].sr_matched != NULL ) {
944 ber_str2bv( candidates[ i ].sr_matched,
946 candidates[ i ].sr_matched = NULL;
951 candidates[ i ].sr_matched
955 candidates[ i ].sr_matched = mmatch.bv_val;
1023 if ( candidates[ i ].sr_err == LDAP_SUCCESS ) {
1027 candidates[ i ].sr_matched ? candidates[ i ].sr_matched : "",
1028 (long) candidates[ i ].sr_err );
1033 candidates[ i ].sr_matched ? candidates[ i ].sr_matched : "",
1034 (long) candidates[ i ].sr_err, ldap_err2string( candidates[ i ].sr_err ) );
1085 prsize = candidates[ i ].sr_nentries;
1088 candidates[ i ].sr_nentries = 0;
1089 candidates[ i ].sr_msgid = META_MSGID_IGNORE;
1090 candidates[ i ].sr_type = REP_INTERMEDIATE;
1092 assert( candidates[ i ].sr_matched == NULL );
1093 assert( candidates[ i ].sr_text == NULL );
1094 assert( candidates[ i ].sr_ref == NULL );
1099 assert( candidates[ i ].sr_msgid >= 0 );
1106 candidates[ i ].sr_err = rs->sr_err;
1107 candidates[ i ].sr_type = REP_RESULT;
1118 candidates[ i ].sr_msgid = META_MSGID_IGNORE;
1119 candidates[ i ].sr_type = REP_RESULT;
1149 candidates[ i ].sr_err = rs->sr_err;
1156 rs->sr_text = candidates[ i ].sr_text;
1158 if (candidates[ i ].sr_text != NULL) {
1159 ch_free( (char *)candidates[ i ].sr_text );
1160 candidates[ i ].sr_text = NULL;
1169 candidates[ i ].sr_err = rs->sr_err;
1200 if (candidates[ i ].sr_type != REP_RESULT) {
1391 SlapReply *candidates;
1414 candidates = bc->candidates;
1416 if ( !META_IS_CANDIDATE( &candidates[ candidate ] ) )
1452 candidates[ candidate ].sr_msgid = META_MSGID_IGNORE;
1453 candidates[ candidate ].sr_type = REP_RESULT;
1469 if (j != candidate && bc->candidates[j].sr_msgid >= 0
1472 bc->candidates[ j ].sr_msgid, j );
1592 if (bc->candidates[j].sr_msgid >= 0) {
1596 bc->candidates[ j ].sr_msgid, j );
1708 if (bc->candidates[j].sr_msgid >= 0) {
1713 bc->candidates[ j ].sr_msgid, j );
1734 if (bc->candidates[j].sr_msgid >= 0) {
1740 bc->candidates[ j ].sr_msgid, j );
1788 if (bc->candidates[j].sr_msgid >= 0) {
1791 bc->candidates[j].sr_type == REP_RESULT) {