Don't automatically index objectlclass eq, ineffective more than not

This commit is contained in:
Kurt Zeilenga 2000-06-06 19:30:49 +00:00
parent 6892f74529
commit 352b447aa4
3 changed files with 3 additions and 15 deletions

View File

@ -80,8 +80,7 @@ attr_index_config(
const char *fname,
int lineno,
int argc,
char **argv,
int init )
char **argv )
{
int rc;
int i;
@ -223,7 +222,7 @@ attr_index_config(
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] );

View File

@ -68,7 +68,7 @@ ldbm_back_db_config(
"%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;

View File

@ -176,17 +176,6 @@ ldbm_back_db_open(
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;
}