mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
ITS#8063 don't block our own thread
This commit is contained in:
parent
46c07bbfb5
commit
8ad64c8f9a
1 changed files with 4 additions and 0 deletions
|
|
@ -2120,6 +2120,10 @@ syncprov_op_mod( Operation *op, SlapReply *rs )
|
|||
mt->mt_tail = mi;
|
||||
/* wait for this op to get to head of list */
|
||||
while ( mt->mt_mods != mi ) {
|
||||
/* don't wait on other mods from the same thread */
|
||||
if ( mt->mt_mods->mi_op->o_threadctx == op->o_threadctx )
|
||||
break;
|
||||
|
||||
ldap_pvt_thread_mutex_unlock( &mt->mt_mutex );
|
||||
/* FIXME: if dynamic config can delete overlays or
|
||||
* databases we'll have to check for cleanup here.
|
||||
|
|
|
|||
Loading…
Reference in a new issue