mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Slightly better ITS#238 fix than last commit... has Debug
message, doesn't bother to open/close index files...
This commit is contained in:
parent
0e4e5c7a13
commit
de8a1d518a
@ -231,6 +231,13 @@ bdb2i_index_add_values(
|
||||
|
||||
char *at_cn;
|
||||
|
||||
if( vals == NULL ) {
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"=> bdb2i_index_add_values( \"%s\", NULL, %ld )\n",
|
||||
type, id, 0 );
|
||||
return 0;
|
||||
}
|
||||
|
||||
Debug( LDAP_DEBUG_TRACE, "=> bdb2i_index_add_values( \"%s\", %ld )\n", type,
|
||||
id, 0 );
|
||||
attr_normalize( type );
|
||||
@ -248,8 +255,7 @@ bdb2i_index_add_values(
|
||||
return( -1 );
|
||||
}
|
||||
|
||||
if( vals != NULL ) {
|
||||
for ( i = 0; vals[i] != NULL; i++ ) {
|
||||
for ( i = 0; vals[i] != NULL; i++ ) {
|
||||
/*
|
||||
* presence index entry
|
||||
*/
|
||||
@ -341,7 +347,6 @@ bdb2i_index_add_values(
|
||||
if ( bigbuf != NULL ) {
|
||||
free( bigbuf );
|
||||
}
|
||||
}
|
||||
}
|
||||
bdb2i_cache_close( be, db );
|
||||
|
||||
|
@ -265,6 +265,13 @@ index_change_values(
|
||||
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" ) );
|
||||
@ -306,8 +313,7 @@ index_change_values(
|
||||
}
|
||||
|
||||
|
||||
if ( vals != NULL ) {
|
||||
for ( i = 0; vals[i] != NULL; i++ ) {
|
||||
for ( i = 0; vals[i] != NULL; i++ ) {
|
||||
/*
|
||||
* presence index entry
|
||||
*/
|
||||
@ -417,7 +423,6 @@ index_change_values(
|
||||
if ( bigbuf != NULL ) {
|
||||
free( bigbuf );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ldbm_cache_close( be, db );
|
||||
|
Loading…
Reference in New Issue
Block a user