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

Slightly better ITS#238 fix than last commit... has Debug

message, doesn't bother to open/close index files...
parent 0e4e5c7a
Branches
Tags
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment