]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldbm/dbcache.c
Notices and acknowledgements
[openldap] / servers / slapd / back-ldbm / dbcache.c
index b9407f4d1a8461ea9e3e1c26c4ef1dce26bf596e..921a02f3823cb0bb362003620e95c02d8b5b20eb 100644 (file)
@@ -1,7 +1,7 @@
 /* ldbmcache.c - maintain a cache of open ldbm files */
 /* $OpenLDAP$ */
 /*
- * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
  */
 
@@ -325,6 +325,7 @@ ldbm_cache_sync( Backend *be )
        ldap_pvt_thread_mutex_unlock( &li->li_dbcache_mutex );
 }
 
+#if 0 /* macro in proto-back-ldbm.h */
 Datum
 ldbm_cache_fetch(
     DBCache    *db,
@@ -333,6 +334,7 @@ ldbm_cache_fetch(
 {
        return ldbm_fetch( db->dbc_db, key );
 }
+#endif /* 0 */
 
 int
 ldbm_cache_store(
@@ -344,24 +346,6 @@ ldbm_cache_store(
 {
        int     rc;
 
-#ifdef LDBM_DEBUG
-       Statslog( LDAP_DEBUG_STATS,
-               "=> ldbm_cache_store(): key.dptr=%s, key.dsize=%d\n",
-               key.dptr, key.dsize, 0, 0, 0 );
-
-       Statslog( LDAP_DEBUG_STATS,
-               "=> ldbm_cache_store(): key.dptr=0x%08x, data.dptr=0x%0 8x\n",
-               key.dptr, data.dptr, 0, 0, 0 );
-
-       Statslog( LDAP_DEBUG_STATS,
-               "=> ldbm_cache_store(): data.dptr=%s, data.dsize=%d\n",
-               data.dptr, data.dsize, 0, 0, 0 );
-
-       Statslog( LDAP_DEBUG_STATS,
-               "=> ldbm_cache_store(): flags=0x%08x\n",
-               flags, 0, 0, 0, 0 );
-#endif /* LDBM_DEBUG */
-
        db->dbc_dirty = 1;
        rc = ldbm_store( db->dbc_db, key, data, flags );