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
532e4ccb
Commit
532e4ccb
authored
Jan 30, 2009
by
Quanah Gibson-Mount
Browse files
Reverse lock order when detaching op
parent
2aba1421
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/overlays/syncprov.c
View file @
532e4ccb
...
...
@@ -2123,17 +2123,16 @@ syncprov_search_response( Operation *op, SlapReply *rs )
op
->
o_tmpfree
(
cookie
.
bv_val
,
op
->
o_tmpmemctx
);
/* Detach this Op from frontend control */
ldap_pvt_thread_mutex_lock
(
&
ss
->
ss_so
->
s_mutex
);
ldap_pvt_thread_mutex_lock
(
&
op
->
o_conn
->
c_mutex
);
/* But not if this connection was closed along the way */
if
(
op
->
o_abandon
)
{
ldap_pvt_thread_mutex_unlock
(
&
op
->
o_conn
->
c_mutex
);
ldap_pvt_thread_mutex_unlock
(
&
ss
->
ss_so
->
s_mutex
);
/* syncprov_ab_cleanup will free this syncop */
return
SLAPD_ABANDON
;
}
else
{
ldap_pvt_thread_mutex_lock
(
&
ss
->
ss_so
->
s_mutex
);
/* Turn off the refreshing flag */
ss
->
ss_so
->
s_flags
^=
PS_IS_REFRESHING
;
...
...
@@ -2144,8 +2143,8 @@ syncprov_search_response( Operation *op, SlapReply *rs )
/* If there are queued responses, fire them off */
if
(
ss
->
ss_so
->
s_res
)
syncprov_qstart
(
ss
->
ss_so
);
ldap_pvt_thread_mutex_unlock
(
&
ss
->
ss_so
->
s_mutex
);
}
ldap_pvt_thread_mutex_unlock
(
&
ss
->
ss_so
->
s_mutex
);
return
LDAP_SUCCESS
;
}
...
...
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