mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-12 10:54:48 +08:00
ITS#5052 fix Quick mode erroneously indexing ID#0
This commit is contained in:
parent
9bd4a298ef
commit
fb5568bd45
@ -435,6 +435,10 @@ int bdb_index_recrun(
|
|||||||
AttrList *al;
|
AttrList *al;
|
||||||
int i, rc = 0;
|
int i, rc = 0;
|
||||||
|
|
||||||
|
/* Never index ID 0 */
|
||||||
|
if ( id == 0 )
|
||||||
|
return 0;
|
||||||
|
|
||||||
for (i=base; i<bdb->bi_nattrs; i+=slap_tool_thread_max) {
|
for (i=base; i<bdb->bi_nattrs; i+=slap_tool_thread_max) {
|
||||||
ir = ir0 + i;
|
ir = ir0 + i;
|
||||||
if ( !ir->ai ) continue;
|
if ( !ir->ai ) continue;
|
||||||
@ -472,6 +476,10 @@ bdb_index_entry(
|
|||||||
struct berval value = {0};
|
struct berval value = {0};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Never index ID 0 */
|
||||||
|
if ( e->e_id == 0 )
|
||||||
|
return 0;
|
||||||
|
|
||||||
Debug( LDAP_DEBUG_TRACE, "=> index_entry_%s( %ld, \"%s\" )\n",
|
Debug( LDAP_DEBUG_TRACE, "=> index_entry_%s( %ld, \"%s\" )\n",
|
||||||
opid == SLAP_INDEX_DELETE_OP ? "del" : "add",
|
opid == SLAP_INDEX_DELETE_OP ? "del" : "add",
|
||||||
(long) e->e_id, e->e_dn );
|
(long) e->e_id, e->e_dn );
|
||||||
|
Loading…
Reference in New Issue
Block a user