From: Kurt Zeilenga Date: Fri, 21 Jul 2000 23:24:24 +0000 (+0000) Subject: Add experimental reindexer. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2392 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=33cb84f57c4d06b0697a7785106d0d43ac841acb;p=openldap Add experimental reindexer. --- diff --git a/servers/slapd/back-ldbm/tools.c b/servers/slapd/back-ldbm/tools.c index d83d70360a..835d5616e0 100644 --- a/servers/slapd/back-ldbm/tools.c +++ b/servers/slapd/back-ldbm/tools.c @@ -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 )