mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
some (poor) index cleanup
This commit is contained in:
parent
7a97f37bd4
commit
6cf0c94845
@ -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(
|
||||
|
@ -259,6 +259,8 @@ idl_fetch(
|
||||
}
|
||||
free( (char *) tmp );
|
||||
|
||||
assert( ID_BLOCK_NIDS(idl) == nids );
|
||||
|
||||
#ifdef LDBM_DEBUG_IDL
|
||||
idl_check(idl);
|
||||
#endif
|
||||
|
@ -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_flush_all 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 ));
|
||||
#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_delete LDAP_P(( DBCache *db, Datum key ));
|
||||
void *ldbm_cache_sync_daemon LDAP_P(( void *));
|
||||
|
Loading…
Reference in New Issue
Block a user