From 33cb84f57c4d06b0697a7785106d0d43ac841acb Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 21 Jul 2000 23:24:24 +0000 Subject: [PATCH] Add experimental reindexer. --- servers/slapd/back-ldbm/tools.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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 ) -- 2.39.5