mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-11 13:50:39 +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,
|
BackendDB *be,
|
||||||
ID id )
|
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 )
|
int ldbm_tool_sync( BackendDB *be )
|
||||||
|
Loading…
Reference in New Issue
Block a user