Skip to content
Snippets Groups Projects
Commit 352b447a authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

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

parent 6892f745
No related branches found
No related tags found
No related merge requests found
......@@ -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] );
......
......@@ -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;
......
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment