mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
Add comment concerning connections mutex. Need to analysis
locking requires and possibly restructure locking.
This commit is contained in:
parent
77cc20be52
commit
1ee8cc51a8
1 changed files with 4 additions and 0 deletions
|
|
@ -318,6 +318,8 @@ long connection_init(
|
||||||
static void
|
static void
|
||||||
connection_destroy( Connection *c )
|
connection_destroy( Connection *c )
|
||||||
{
|
{
|
||||||
|
/* note: connections_mutex should be locked by caller */
|
||||||
|
|
||||||
assert( connections != NULL );
|
assert( connections != NULL );
|
||||||
assert( c != NULL );
|
assert( c != NULL );
|
||||||
assert( c->c_struct_state != SLAP_C_UNUSED );
|
assert( c->c_struct_state != SLAP_C_UNUSED );
|
||||||
|
|
@ -429,6 +431,8 @@ static void connection_close( Connection *c )
|
||||||
assert( c->c_struct_state == SLAP_C_USED );
|
assert( c->c_struct_state == SLAP_C_USED );
|
||||||
assert( c->c_conn_state == SLAP_C_CLOSING );
|
assert( c->c_conn_state == SLAP_C_CLOSING );
|
||||||
|
|
||||||
|
/* note: connections_mutex should be locked by caller */
|
||||||
|
|
||||||
if( c->c_ops != NULL ) {
|
if( c->c_ops != NULL ) {
|
||||||
Debug( LDAP_DEBUG_TRACE,
|
Debug( LDAP_DEBUG_TRACE,
|
||||||
"connection_close: deferring conn=%ld sd=%d.\n",
|
"connection_close: deferring conn=%ld sd=%d.\n",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue