mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Don't automatically index objectlclass eq, ineffective more than not
This commit is contained in:
parent
6892f74529
commit
352b447aa4
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user