"returned=%d\n",
desc->ad_cname.bv_val, rc, 0 );
#endif
- return 0;
+ return rc;
}
if( db == NULL ) {
"<= bdb_presence_candidates: (%s) not indexed\n",
desc->ad_cname.bv_val, 0, 0 );
#endif
- return 0;
+ return -1;
}
if( prefix.bv_val == NULL ) {
"<= bdb_presence_candidates: (%s) no prefix\n",
desc->ad_cname.bv_val, 0, 0 );
#endif
- return 0;
+ return -1;
}
rc = bdb_key_read( op->o_bd, db, NULL, &prefix, ids );
"<= bdb_equality_candidates: (%s) no keys\n",
ava->aa_desc->ad_cname.bv_val, 0, 0 );
#endif
- return 0;
+ return -1;
}
for ( i= 0; keys[i].bv_val != NULL; i++ ) {
"<= bdb_approx_candidates: (%s) no keys (%s)\n",
prefix.bv_val, ava->aa_desc->ad_cname.bv_val, 0 );
#endif
- return 0;
+ return -1;
}
for ( i= 0; keys[i].bv_val != NULL; i++ ) {
"<= bdb_substring_candidates: (0x%04lx) no keys (%s)\n",
mask, sub->sa_desc->ad_cname.bv_val, 0 );
#endif
- return 0;
+ return -1;
}
for ( i= 0; keys[i].bv_val != NULL; i++ ) {
(long) BDB_IDL_FIRST(ids),
(long) BDB_IDL_LAST(ids) );
#endif
- return( 0 );
+ return( rc );
}