Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
98f70f18
Commit
98f70f18
authored
Apr 29, 2015
by
Quanah Gibson-Mount
Browse files
ITS#8120 Move final CHECK_CSN block to before the mutex is unlocked.
parent
0021ed87
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/syncrepl.c
View file @
98f70f18
...
...
@@ -3922,12 +3922,6 @@ syncrepl_updateCookie(
ch_free
(
sc
.
sids
);
ber_bvarray_free
(
sc
.
ctxcsn
);
}
ldap_pvt_thread_mutex_unlock
(
&
si
->
si_cookieState
->
cs_mutex
);
op
->
o_bd
=
be
;
op
->
o_tmpfree
(
op
->
o_csn
.
bv_val
,
op
->
o_tmpmemctx
);
BER_BVZERO
(
&
op
->
o_csn
);
if
(
mod
.
sml_next
)
slap_mods_free
(
mod
.
sml_next
,
1
);
#ifdef CHECK_CSN
for
(
i
=
0
;
i
<
si
->
si_cookieState
->
cs_num
;
i
++
)
{
...
...
@@ -3935,6 +3929,13 @@ syncrepl_updateCookie(
}
#endif
ldap_pvt_thread_mutex_unlock
(
&
si
->
si_cookieState
->
cs_mutex
);
op
->
o_bd
=
be
;
op
->
o_tmpfree
(
op
->
o_csn
.
bv_val
,
op
->
o_tmpmemctx
);
BER_BVZERO
(
&
op
->
o_csn
);
if
(
mod
.
sml_next
)
slap_mods_free
(
mod
.
sml_next
,
1
);
return
rc
;
}
...
...
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