some (poor) index cleanup

This commit is contained in:
Pierangelo Masarati 2003-02-07 15:20:57 +00:00
parent 7a97f37bd4
commit 6cf0c94845
3 changed files with 8 additions and 0 deletions

View File

@ -325,6 +325,7 @@ ldbm_cache_sync( Backend *be )
ldap_pvt_thread_mutex_unlock( &li->li_dbcache_mutex ); ldap_pvt_thread_mutex_unlock( &li->li_dbcache_mutex );
} }
#if 0 /* macro in proto-back-ldbm.h */
Datum Datum
ldbm_cache_fetch( ldbm_cache_fetch(
DBCache *db, DBCache *db,
@ -333,6 +334,7 @@ ldbm_cache_fetch(
{ {
return ldbm_fetch( db->dbc_db, key ); return ldbm_fetch( db->dbc_db, key );
} }
#endif /* 0 */
int int
ldbm_cache_store( ldbm_cache_store(

View File

@ -259,6 +259,8 @@ idl_fetch(
} }
free( (char *) tmp ); free( (char *) tmp );
assert( ID_BLOCK_NIDS(idl) == nids );
#ifdef LDBM_DEBUG_IDL #ifdef LDBM_DEBUG_IDL
idl_check(idl); idl_check(idl);
#endif #endif

View File

@ -68,7 +68,11 @@ void ldbm_cache_close LDAP_P(( Backend *be, DBCache *db ));
void ldbm_cache_really_close LDAP_P(( Backend *be, DBCache *db )); void ldbm_cache_really_close LDAP_P(( Backend *be, DBCache *db ));
void ldbm_cache_flush_all LDAP_P(( Backend *be )); void ldbm_cache_flush_all LDAP_P(( Backend *be ));
void ldbm_cache_sync LDAP_P(( Backend *be )); void ldbm_cache_sync LDAP_P(( Backend *be ));
#if 0 /* replaced by macro */
Datum ldbm_cache_fetch LDAP_P(( DBCache *db, Datum key )); Datum ldbm_cache_fetch LDAP_P(( DBCache *db, Datum key ));
#else /* 1 */
#define ldbm_cache_fetch( db, key ) ldbm_fetch( (db)->dbc_db, (key) )
#endif /* 1 */
int ldbm_cache_store LDAP_P(( DBCache *db, Datum key, Datum data, int flags )); int ldbm_cache_store LDAP_P(( DBCache *db, Datum key, Datum data, int flags ));
int ldbm_cache_delete LDAP_P(( DBCache *db, Datum key )); int ldbm_cache_delete LDAP_P(( DBCache *db, Datum key ));
void *ldbm_cache_sync_daemon LDAP_P(( void *)); void *ldbm_cache_sync_daemon LDAP_P(( void *));