mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-13 14:27:59 +08:00
ITS#8752 additional debug info, thread ID of rmutex lockers
This commit is contained in:
parent
b0ad788b8a
commit
4a574324fd
@ -1515,6 +1515,11 @@ static int accesslog_response(Operation *op, SlapReply *rs) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef RMUTEX_DEBUG
|
||||||
|
Debug( LDAP_DEBUG_SYNC,
|
||||||
|
"accesslog_response: unlocking rmutex for tid %x\n",
|
||||||
|
op->o_tid, 0, 0 );
|
||||||
|
#endif
|
||||||
ldap_pvt_thread_rmutex_unlock( &li->li_op_rmutex, op->o_tid );
|
ldap_pvt_thread_rmutex_unlock( &li->li_op_rmutex, op->o_tid );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1995,7 +2000,17 @@ accesslog_op_mod( Operation *op, SlapReply *rs )
|
|||||||
for ( cb2 = op->o_callback; cb2->sc_next; cb2 = cb2->sc_next );
|
for ( cb2 = op->o_callback; cb2->sc_next; cb2 = cb2->sc_next );
|
||||||
cb2->sc_next = cb;
|
cb2->sc_next = cb;
|
||||||
|
|
||||||
|
#ifdef RMUTEX_DEBUG
|
||||||
|
Debug( LDAP_DEBUG_SYNC,
|
||||||
|
"accesslog_op_mod: locking rmutex for tid %x\n",
|
||||||
|
op->o_tid, 0, 0 );
|
||||||
|
#endif
|
||||||
ldap_pvt_thread_rmutex_lock( &li->li_op_rmutex, op->o_tid );
|
ldap_pvt_thread_rmutex_lock( &li->li_op_rmutex, op->o_tid );
|
||||||
|
#ifdef RMUTEX_DEBUG
|
||||||
|
Debug( LDAP_DEBUG_STATS,
|
||||||
|
"accesslog_op_mod: locked rmutex for tid %x\n",
|
||||||
|
op->o_tid, 0, 0 );
|
||||||
|
#endif
|
||||||
if ( li->li_oldf && ( op->o_tag == LDAP_REQ_DELETE ||
|
if ( li->li_oldf && ( op->o_tag == LDAP_REQ_DELETE ||
|
||||||
op->o_tag == LDAP_REQ_MODIFY ||
|
op->o_tag == LDAP_REQ_MODIFY ||
|
||||||
( op->o_tag == LDAP_REQ_MODRDN && li->li_oldattrs )))
|
( op->o_tag == LDAP_REQ_MODRDN && li->li_oldattrs )))
|
||||||
|
Loading…
Reference in New Issue
Block a user