Skip to content
Snippets Groups Projects
Commit 26266ac4 authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#8063 don't block our own thread

parent 9a3cddf1
No related branches found
No related tags found
No related merge requests found
......@@ -2122,6 +2122,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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment