mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Enable management of attribute indices. Not yet used by test_filter.
This commit is contained in:
parent
f704c35caf
commit
86a680a4ec
@ -238,7 +238,7 @@ retry: rc = txn_abort( ltid );
|
||||
goto return_results;
|
||||
}
|
||||
|
||||
#if 0
|
||||
#if BDB_INDEX
|
||||
/* attribute indexes */
|
||||
if ( index_entry_add( be, e, e->e_attrs ) != LDAP_SUCCESS ) {
|
||||
Debug( LDAP_DEBUG_TRACE, "bdb_add: index_entry_add failed\n",
|
||||
|
@ -15,6 +15,7 @@
|
||||
|
||||
LDAP_BEGIN_DECL
|
||||
|
||||
#define BBD_INDEX 1
|
||||
|
||||
#define DN_BASE_PREFIX SLAP_INDEX_EQUALITY_PREFIX
|
||||
#define DN_ONE_PREFIX '%'
|
||||
|
@ -12,15 +12,9 @@
|
||||
|
||||
#include "slap.h"
|
||||
|
||||
#if 1
|
||||
/* larger IDL sizes (which blow thread stacks) */
|
||||
/* larger IDL sizes - likely should be even bigger */
|
||||
#define BDB_IDL_DB_SIZE (1<<16) /* 64K IDL on disk */
|
||||
#define BDB_IDL_SIZE (1<<17) /* 128K IDL in memory */
|
||||
#else
|
||||
/* reduced IDL sizes for testing */
|
||||
#define BDB_IDL_DB_SIZE (1<<8) /* 256 IDL on disk */
|
||||
#define BDB_IDL_SIZE (1<<10) /* 1K IDL in memory */
|
||||
#endif
|
||||
|
||||
#define BDB_IDL_DB_MAX (BDB_IDL_DB_SIZE-32)
|
||||
/* #define BDB_IDL_DB_ALLOC (BDB_IDL_DB_SIZE * sizeof(ID)) */
|
||||
|
@ -127,7 +127,7 @@ int bdb_modify_internal(
|
||||
return rc;
|
||||
}
|
||||
|
||||
#if 0
|
||||
#if BDB_INDEX
|
||||
/* delete indices for old attributes */
|
||||
rc = index_entry_del( be, tid, e, save_attrs);
|
||||
|
||||
|
@ -156,7 +156,7 @@ ID bdb_tool_entry_put(
|
||||
goto done;
|
||||
}
|
||||
|
||||
#if 0
|
||||
#if BDB_INDEX
|
||||
rc = bdb_index_entry_add( be, tid, e, e->e_attrs );
|
||||
if( rc != 0 ) {
|
||||
goto done;
|
||||
@ -184,7 +184,7 @@ done:
|
||||
return e->e_id;
|
||||
}
|
||||
|
||||
#if 0
|
||||
#if BDB_INDEX
|
||||
int bdb_tool_entry_reindex(
|
||||
BackendDB *be,
|
||||
ID id )
|
||||
|
Loading…
Reference in New Issue
Block a user