mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-05 13:40:08 +08:00
Add experimental reindexer.
This commit is contained in:
parent
1fdb11c817
commit
33cb84f57c
@ -196,7 +196,22 @@ int ldbm_tool_entry_reindex(
|
||||
BackendDB *be,
|
||||
ID id )
|
||||
{
|
||||
return LDAP_OTHER;
|
||||
int rc;
|
||||
Entry *e = ldbm_tool_entry_get( be, id );
|
||||
|
||||
if( e == NULL ) return -1;
|
||||
|
||||
/*
|
||||
* just (re)add them for now
|
||||
* assume that some other routine (not yet implemented)
|
||||
* will zap index databases
|
||||
*
|
||||
*/
|
||||
rc = index_entry_add( be, e, e->e_attrs );
|
||||
|
||||
entry_free( e );
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
int ldbm_tool_sync( BackendDB *be )
|
||||
|
Loading…
Reference in New Issue
Block a user