Diff for /servers/slapd/back-bdb/dbcache.c between versions 1.12 and 1.13

version 1.12, 2001/12/15 22:21:37 version 1.13, 2001/12/16 13:21:47
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.11 2001/12/15 22:00:46 hyc Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/back-bdb/dbcache.c,v 1.12 2001/12/15 22:21:37 hyc Exp $ */
 /*  /*
  * Copyright 1998-2001 The OpenLDAP Foundation, All Rights Reserved.   * Copyright 1998-2001 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file   * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
Line 17 Line 17
   
 #include "slap.h"  #include "slap.h"
 #include "back-bdb.h"  #include "back-bdb.h"
   #include "lutil_hash.h"
   
   /* Pass-thru hash function. Since the indexer is already giving us hash
    * values as keys, we don't need BDB to re-hash them.
    */
   #if LUTIL_HASH_BYTES == 4
   static u_int32_t
   bdb_db_hash(
           DB *db,
           const void *bytes,
           u_int32_t length
   )
   {
           u_int32_t *ret = (u_int32_t *)bytes;
           return *ret;
   }
   #endif
   
 int  int
 bdb_db_cache(  bdb_db_cache(
Line 69  bdb_db_cache( Line 86  bdb_db_cache(
         }          }
   
         rc = db->bdi_db->set_pagesize( db->bdi_db, BDB_PAGESIZE );          rc = db->bdi_db->set_pagesize( db->bdi_db, BDB_PAGESIZE );
   #if LUTIL_HASH_BYTES == 4
           rc = db->bdi_db->set_h_hash( db->bdi_db, bdb_db_hash );
   #endif
 #ifdef BDB_IDL_MULTI  #ifdef BDB_IDL_MULTI
         rc = db->bdi_db->set_flags( db->bdi_db, DB_DUP | DB_DUPSORT );          rc = db->bdi_db->set_flags( db->bdi_db, DB_DUP | DB_DUPSORT );
 #endif  #endif

Removed from v.1.12  
changed lines
  Added in v.1.13


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