Diff for /servers/slapd/back-bdb/dbcache.c between versions 1.43.2.4 and 1.48

version 1.43.2.4, 2007/11/26 04:08:37 version 1.48, 2007/12/15 18:07:41
Line 1 Line 1
 /* dbcache.c - manage cache of open databases */  /* dbcache.c - manage cache of open databases */
 /* $OpenLDAP: pkg/ldap/servers/slapd/back-bdb/dbcache.c,v 1.43.2.3 2007/11/21 18:18:32 quanah Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/back-bdb/dbcache.c,v 1.47 2007/11/23 11:47:53 ando Exp $ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.  /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *   *
  * Copyright 2000-2007 The OpenLDAP Foundation.   * Copyright 2000-2007 The OpenLDAP Foundation.
Line 104  bdb_db_cache( Line 104  bdb_db_cache(
                         "bdb_db_cache: db_create(%s) failed: %s (%d)\n",                          "bdb_db_cache: db_create(%s) failed: %s (%d)\n",
                         bdb->bi_dbenv_home, db_strerror(rc), rc );                          bdb->bi_dbenv_home, db_strerror(rc), rc );
                 ldap_pvt_thread_mutex_unlock( &bdb->bi_database_mutex );                  ldap_pvt_thread_mutex_unlock( &bdb->bi_database_mutex );
                   ch_free( db );
                 return rc;                  return rc;
         }          }
   
           if( !BER_BVISNULL( &bdb->bi_db_crypt_key )) {
                   rc = db->bdi_db->set_flags( db->bdi_db, DB_ENCRYPT );
                   if ( rc ) {
                           Debug( LDAP_DEBUG_ANY,
                                   "bdb_db_cache: db set_flags(DB_ENCRYPT)(%s) failed: %s (%d)\n",
                                   bdb->bi_dbenv_home, db_strerror(rc), rc );
                           ldap_pvt_thread_mutex_unlock( &bdb->bi_database_mutex );
                           db->bdi_db->close( db->bdi_db, 0 );
                           ch_free( db );
                           return rc;
                   }
           }
   
         rc = db->bdi_db->set_pagesize( db->bdi_db, BDB_PAGESIZE );          rc = db->bdi_db->set_pagesize( db->bdi_db, BDB_PAGESIZE );
 #ifdef BDB_INDEX_USE_HASH  #ifdef BDB_INDEX_USE_HASH
         rc = db->bdi_db->set_h_hash( db->bdi_db, bdb_db_hash );          rc = db->bdi_db->set_h_hash( db->bdi_db, bdb_db_hash );

Removed from v.1.43.2.4  
changed lines
  Added in v.1.48


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org