mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
ITS#8063 more for prev commit
This commit is contained in:
parent
8ad64c8f9a
commit
8eb9aa7dc5
1 changed files with 9 additions and 1 deletions
|
|
@ -2120,8 +2120,16 @@ 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 ) {
|
||||
modinst *m2;
|
||||
int same = 0;
|
||||
/* don't wait on other mods from the same thread */
|
||||
if ( mt->mt_mods->mi_op->o_threadctx == op->o_threadctx )
|
||||
for ( m2 = mt->mt_mods; m2; m2 = m2->mi_next ) {
|
||||
if ( m2->mi_op->o_threadctx == op->o_threadctx ) {
|
||||
same = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if ( same )
|
||||
break;
|
||||
|
||||
ldap_pvt_thread_mutex_unlock( &mt->mt_mutex );
|
||||
|
|
|
|||
Loading…
Reference in a new issue