Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
orbea -
OpenLDAP
Commits
fb5568bd
Commit
fb5568bd
authored
Jul 20, 2007
by
Howard Chu
Browse files
ITS#5052 fix Quick mode erroneously indexing ID#0
parent
9bd4a298
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-bdb/index.c
View file @
fb5568bd
...
...
@@ -435,6 +435,10 @@ int bdb_index_recrun(
AttrList
*
al
;
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
)
{
ir
=
ir0
+
i
;
if
(
!
ir
->
ai
)
continue
;
...
...
@@ -472,6 +476,10 @@ bdb_index_entry(
struct
berval
value
=
{
0
};
#endif
/* Never index ID 0 */
if
(
e
->
e_id
==
0
)
return
0
;
Debug
(
LDAP_DEBUG_TRACE
,
"=> index_entry_%s( %ld,
\"
%s
\"
)
\n
"
,
opid
==
SLAP_INDEX_DELETE_OP
?
"del"
:
"add"
,
(
long
)
e
->
e_id
,
e
->
e_dn
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment