/* index.c - routines for dealing with attribute indexes */
/* $OpenLDAP$ */
/*
- * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
Backend *be,
char *dbname,
struct berval *atname,
- struct berval **vals,
+ BVarray vals,
ID id,
int op,
slap_mask_t mask )
const char *text;
DBCache *db;
AttributeDescription *ad = NULL;
- struct berval **keys;
+ struct berval *keys;
assert( mask );
atname, vals, &keys );
if( rc == LDAP_SUCCESS && keys != NULL ) {
- for( i=0; keys[i] != NULL; i++ ) {
- key_change( be, db, keys[i], id, op );
+ for( i=0; keys[i].bv_val != NULL; i++ ) {
+ key_change( be, db, &keys[i], id, op );
}
- ber_bvecfree( keys );
+ bvarray_free( keys );
}
}
atname, vals, &keys );
if( rc == LDAP_SUCCESS && keys != NULL ) {
- for( i=0; keys[i] != NULL; i++ ) {
- key_change( be, db, keys[i], id, op );
+ for( i=0; keys[i].bv_val != NULL; i++ ) {
+ key_change( be, db, &keys[i], id, op );
}
- ber_bvecfree( keys );
+ bvarray_free( keys );
}
}
atname, vals, &keys );
if( rc == LDAP_SUCCESS && keys != NULL ) {
- for( i=0; keys[i] != NULL; i++ ) {
- key_change( be, db, keys[i], id, op );
+ for( i=0; keys[i].bv_val != NULL; i++ ) {
+ key_change( be, db, &keys[i], id, op );
}
- ber_bvecfree( keys );
+ bvarray_free( keys );
}
}
Backend *be,
AttributeType *type,
struct berval *lang,
- struct berval **vals,
+ BVarray vals,
ID id,
int op,
char ** dbnamep,
int index_values(
Backend *be,
AttributeDescription *desc,
- struct berval **vals,
+ BVarray vals,
ID id,
int op )
{