Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tero Saarni
OpenLDAP
Commits
ceaeae76
Commit
ceaeae76
authored
Jul 06, 2009
by
Quanah Gibson-Mount
Browse files
ITS#6196
parent
6d1f2ef2
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
ceaeae76
...
...
@@ -35,6 +35,7 @@ OpenLDAP 2.4.17 Engineering
Fixed slapd tls context after changes (ITS#6135)
Fixed slapd-bdb/hdb adjust dncachesize if too low (ITS#6176)
Fixed slapd-bdb/hdb crashes during delete (ITS#6177)
Fixed slapd-bdb/hdb multiple olcIndex for same attr (ITS#6196)
Fixed slapd-hdb freeing of already freed entries (ITS#6074)
Fixed slapd-hdb entryinfo cleanup (ITS#6088)
Fixed slapd-hdb dncache lockups (ITS#6095)
...
...
servers/slapd/back-bdb/attr.c
View file @
ceaeae76
...
...
@@ -319,15 +319,20 @@ bdb_attr_index_config(
if
(
rc
)
{
if
(
bdb
->
bi_flags
&
BDB_IS_OPEN
)
{
AttrInfo
*
b
=
bdb_attr_mask
(
bdb
,
ad
);
/* If we were editing this attr, reset it */
b
->
ai_indexmask
&=
~
BDB_INDEX_DELETING
;
/* If this is leftover from a previous add, commit it */
if
(
b
->
ai_newmask
)
b
->
ai_indexmask
=
b
->
ai_newmask
;
b
->
ai_newmask
=
a
->
ai_newmask
;
ch_free
(
a
);
rc
=
0
;
continue
;
/* If there is already an index defined for this attribute
* it must be replaced. Otherwise we end up with multiple
* olcIndex values for the same attribute */
if
(
b
->
ai_indexmask
&
BDB_INDEX_DELETING
)
{
/* If we were editing this attr, reset it */
b
->
ai_indexmask
&=
~
BDB_INDEX_DELETING
;
/* If this is leftover from a previous add, commit it */
if
(
b
->
ai_newmask
)
b
->
ai_indexmask
=
b
->
ai_newmask
;
b
->
ai_newmask
=
a
->
ai_newmask
;
ch_free
(
a
);
rc
=
0
;
continue
;
}
}
if
(
c_reply
)
{
snprintf
(
c_reply
->
msg
,
sizeof
(
c_reply
->
msg
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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