~ubuntu-branches/ubuntu/maverick/openldap/maverick-proposed

« back to all changes in this revision

Viewing changes to servers/slapd/back-meta/unbind.c

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2009-09-07 13:41:10 UTC
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: james.westby@ubuntu.com-20090907134110-jsdrvn0atu1fex4m
Tags: upstream-2.4.18
ImportĀ upstreamĀ versionĀ 2.4.18

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $OpenLDAP: pkg/ldap/servers/slapd/back-meta/unbind.c,v 1.30.2.6 2009/01/22 00:01:08 kurt Exp $ */
 
1
/* $OpenLDAP: pkg/ldap/servers/slapd/back-meta/unbind.c,v 1.30.2.7 2009/08/26 00:50:20 quanah Exp $ */
2
2
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
3
3
 *
4
4
 * Copyright 1999-2009 The OpenLDAP Foundation.
39
39
{
40
40
        metainfo_t      *mi = ( metainfo_t * )be->be_private;
41
41
        metaconn_t      *mc,
42
 
                        mc_curr = { 0 };
 
42
                        mc_curr = {{ 0 }};
43
43
        int             i;
44
44
 
45
45
 
56
56
#endif /* META_BACK_PRINT_CONNTREE */
57
57
        while ( ( mc = avl_delete( &mi->mi_conninfo.lai_tree, ( caddr_t )&mc_curr, meta_back_conn_cmp ) ) != NULL )
58
58
        {
 
59
                assert( !LDAP_BACK_PCONN_ISPRIV( mc ) );
59
60
                Debug( LDAP_DEBUG_TRACE,
60
 
                        "=>meta_back_conn_destroy: destroying conn %ld "
 
61
                        "=>meta_back_conn_destroy: destroying conn %lu "
61
62
                        "refcnt=%d flags=0x%08x\n",
62
 
                        LDAP_BACK_PCONN_ID( mc ),
63
 
                        mc->mc_refcnt, mc->msc_mscflags );
 
63
                        mc->mc_conn->c_connid, mc->mc_refcnt, mc->msc_mscflags );
64
64
                
65
65
                if ( mc->mc_refcnt > 0 ) {
66
66
                        /* someone else might be accessing the connection;