Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tero Saarni
OpenLDAP
Commits
75bb5633
Commit
75bb5633
authored
Mar 17, 2009
by
Quanah Gibson-Mount
Browse files
ITS#5999
parent
ae8784a0
Changes
3
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
75bb5633
...
...
@@ -22,6 +22,7 @@ OpenLDAP 2.4.16 Engineering
Fixed slapo-syncprov newCookie sync messages (ITS#5972)
Fixed slapd-syncprov too many MMR messages (ITS#6020)
Fixed slapo-syncprov replica lockout (ITS#5985)
Fixed slapo-syncprov modtarget tracking (ITS#5999)
Build Environment
Cleaned up alloc/free functions for Windows (ITS#6005)
Documentation
...
...
servers/slapd/overlays/syncprov.c
View file @
75bb5633
...
...
@@ -142,6 +142,7 @@ typedef struct syncprov_info_t {
typedef
struct
opcookie
{
slap_overinst
*
son
;
syncmatches
*
smatches
;
modtarget
*
smt
;
struct
berval
sdn
;
/* DN of entry, for deletes */
struct
berval
sndn
;
struct
berval
suuid
;
/* UUID of entry */
...
...
@@ -1313,26 +1314,24 @@ syncprov_op_cleanup( Operation *op, SlapReply *rs )
}
/* Remove op from lock table */
mtdummy
.
mt_op
=
op
;
ldap_pvt_thread_mutex_lock
(
&
si
->
si_mods_mutex
);
mt
=
avl_find
(
si
->
si_mods
,
&
mtdummy
,
sp_avl_cmp
);
mt
=
opc
->
smt
;
if
(
mt
)
{
modinst
*
mi
=
mt
->
mt_mods
;
/* If there are more, promote the next one */
ldap_pvt_thread_mutex_lock
(
&
mt
->
mt_mutex
);
if
(
mi
->
mi_next
)
{
ldap_pvt_thread_mutex_lock
(
&
mt
->
mt_mutex
);
mt
->
mt_mods
=
mi
->
mi_next
;
mt
->
mt_op
=
mt
->
mt_mods
->
mi_op
;
ldap_pvt_thread_mutex_unlock
(
&
mt
->
mt_mutex
);
}
else
{
ldap_pvt_thread_mutex_lock
(
&
si
->
si_mods_mutex
);
avl_delete
(
&
si
->
si_mods
,
mt
,
sp_avl_cmp
);
ldap_pvt_thread_mutex_unlock
(
&
mt
->
mt
_mutex
);
ldap_pvt_thread_mutex_unlock
(
&
si
->
si_mods
_mutex
);
ldap_pvt_thread_mutex_destroy
(
&
mt
->
mt_mutex
);
ch_free
(
mt
);
}
}
ldap_pvt_thread_mutex_unlock
(
&
si
->
si_mods_mutex
);
if
(
!
BER_BVISNULL
(
&
opc
->
suuid
))
op
->
o_tmpfree
(
opc
->
suuid
.
bv_val
,
op
->
o_tmpmemctx
);
if
(
!
BER_BVISNULL
(
&
opc
->
sndn
))
...
...
@@ -1974,6 +1973,7 @@ syncprov_op_mod( Operation *op, SlapReply *rs )
avl_insert
(
&
si
->
si_mods
,
mt
,
sp_avl_cmp
,
avl_dup_error
);
ldap_pvt_thread_mutex_unlock
(
&
si
->
si_mods_mutex
);
}
opc
->
smt
=
mt
;
}
if
((
have_psearches
||
si
->
si_logs
)
&&
op
->
o_tag
!=
LDAP_REQ_ADD
)
...
...
tests/scripts/defines.sh
View file @
75bb5633
...
...
@@ -46,8 +46,8 @@ WITH_SASL=${AC_WITH_SASL-no}
USE_SASL
=
${
SLAPD_USE_SASL
-no
}
ACI
=
${
AC_ACI_ENABLED
-acino
}
THREADS
=
${
AC_THREADS
-threadsno
}
SLEEP1
=
${
SLEEP1
-
7
}
SLEEP2
=
${
SLEEP2
-
15
}
SLEEP1
=
${
SLEEP1
-
20
}
SLEEP2
=
${
SLEEP2
-
30
}
# dirs
PROGDIR
=
./progs
...
...
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