#include "back-ldbm.h"
static int change_value(Backend *be,
- struct dbcache *db,
+ DBCache *db,
char *type,
int indextype,
char *val,
ID id,
int
- (*idl_func)(Backend *, struct dbcache *, Datum, ID));
+ (*idl_func)(Backend *, DBCache *, Datum, ID));
static int index2prefix(int indextype);
int
char *val
)
{
- struct dbcache *db;
+ DBCache *db;
Datum key;
ID_BLOCK *idl;
int indexmask, syntax;
static int
change_value(
Backend *be,
- struct dbcache *db,
+ DBCache *db,
char *type,
int indextype,
char *val,
ID id,
- int (*idl_func)(Backend *, struct dbcache *, Datum, ID)
+ int (*idl_func)(Backend *, DBCache *, Datum, ID)
)
{
int rc;
char buf[SUBLEN + 1];
char vbuf[BUFSIZ];
char *bigbuf;
- struct dbcache *db;
+ DBCache *db;
int (*idl_funct)(Backend *,
- struct dbcache *,
+ DBCache *,
Datum, ID);
char *at_cn; /* Attribute canonical name */
int mode;
+ if( vals == NULL ) {
+ Debug( LDAP_DEBUG_TRACE,
+ "=> index_change_values( %s, NULL, %ld, op=%s )\n",
+ type, id, ((op == __INDEX_ADD_OP) ? "ADD" : "DELETE" ) );
+ return 0;
+ }
+
Debug( LDAP_DEBUG_TRACE,
"=> index_change_values( \"%s\", %ld, op=%s )\n",
type, id, ((op == __INDEX_ADD_OP) ? "ADD" : "DELETE" ) );
free( bigbuf );
}
}
+
ldbm_cache_close( be, db );
return( 0 );