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",
LDAP_BEGIN_DECL
+#define BBD_INDEX 1
#define DN_BASE_PREFIX SLAP_INDEX_EQUALITY_PREFIX
#define DN_ONE_PREFIX '%'
#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)) */
return rc;
}
-#if 0
+#if BDB_INDEX
/* delete indices for old attributes */
rc = index_entry_del( be, tid, e, save_attrs);
goto done;
}
-#if 0
+#if BDB_INDEX
rc = bdb_index_entry_add( be, tid, e, e->e_attrs );
if( rc != 0 ) {
goto done;
return e->e_id;
}
-#if 0
+#if BDB_INDEX
int bdb_tool_entry_reindex(
BackendDB *be,
ID id )