const char *fname,
int lineno,
int argc,
- char **argv,
- int init )
+ char **argv )
{
int rc;
int i;
rc = avl_insert( &li->li_attrs, (caddr_t) a,
(AVL_CMP) ainfo_cmp, (AVL_DUP) avl_dup_error );
- if( rc && !init ) {
+ if( rc ) {
fprintf( stderr, "%s: line %d: duplicate index definition "
"for attr \"%s\" (ignored)\n",
fname, lineno, attrs[i] );
"%s: line %d: extra junk after \"index <attr> [pres,eq,approx,sub]\" line (ignored)\n",
fname, lineno );
}
- rc = attr_index_config( li, fname, lineno, argc - 1, &argv[1], 0 );
+ rc = attr_index_config( li, fname, lineno, argc - 1, &argv[1] );
if( rc != LDAP_SUCCESS ) return 1;
BackendDB *be
)
{
- struct ldbminfo *li = (struct ldbminfo *) be->be_private;
- char *argv[ 4 ];
-
- /* allocate backend-database-specific stuff */
-
- argv[ 0 ] = "objectclass";
- argv[ 1 ] = "eq";
- argv[ 2 ] = NULL;
- attr_index_config( li, "ldbm objectclass initialization",
- 0, 2, argv, 1 );
-
return 0;
}