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
Joe Martin
OpenLDAP
Commits
7561998f
Commit
7561998f
authored
Oct 30, 2009
by
Quanah Gibson-Mount
Browse files
ITS#6335
parent
e9999ed8
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
7561998f
...
...
@@ -5,6 +5,7 @@ OpenLDAP 2.4.20 Engineering
Fixed slapd debug handling of LDAP_DEBUG_ANY (ITS#6324)
Fixed slapd-ldap leak (ITS#6326)
Fixed slapo-memberof operational attr updates (ITS#6329)
Fixed slapo-syncprov deadlock (ITS#6335)
Documentation
ldap_get_dn(3) typos (ITS#5366)
...
...
servers/slapd/overlays/syncprov.c
View file @
7561998f
...
...
@@ -1324,15 +1324,14 @@ syncprov_op_cleanup( Operation *op, SlapReply *rs )
/* Remove op from lock table */
mt
=
opc
->
smt
;
if
(
mt
)
{
modinst
*
mi
=
mt
->
mt_m
ods
;
ldap_pvt_thread_mutex_lock
(
&
mt
->
mt_m
utex
)
;
mt
->
mt_mods
=
mt
->
mt_mods
->
mi_next
;
/* If there are more, promote the next one */
if
(
mi
->
mi_next
)
{
ldap_pvt_thread_mutex_lock
(
&
mt
->
mt_mutex
);
mt
->
mt_mods
=
mi
->
mi_next
;
if
(
mt
->
mt_mods
)
{
mt
->
mt_op
=
mt
->
mt_mods
->
mi_op
;
ldap_pvt_thread_mutex_unlock
(
&
mt
->
mt_mutex
);
}
else
{
ldap_pvt_thread_mutex_unlock
(
&
mt
->
mt_mutex
);
ldap_pvt_thread_mutex_lock
(
&
si
->
si_mods_mutex
);
avl_delete
(
&
si
->
si_mods
,
mt
,
sp_avl_cmp
);
ldap_pvt_thread_mutex_unlock
(
&
si
->
si_mods_mutex
);
...
...
@@ -1946,6 +1945,15 @@ syncprov_op_mod( Operation *op, SlapReply *rs )
mt
=
avl_find
(
si
->
si_mods
,
&
mtdummy
,
sp_avl_cmp
);
if
(
mt
)
{
ldap_pvt_thread_mutex_lock
(
&
mt
->
mt_mutex
);
if
(
mt
->
mt_mods
==
NULL
)
{
/* Cannot reuse this mt, as another thread is about
* to release it in syncprov_op_cleanup.
*/
ldap_pvt_thread_mutex_unlock
(
&
mt
->
mt_mutex
);
mt
=
NULL
;
}
}
if
(
mt
)
{
ldap_pvt_thread_mutex_unlock
(
&
si
->
si_mods_mutex
);
mt
->
mt_tail
->
mi_next
=
mi
;
mt
->
mt_tail
=
mi
;
...
...
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