Commit 8dbd3268 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

SLAPD_SCHEMA_NOT_COMPAT: disable indexing

parent e0bf8e89
...@@ -21,8 +21,9 @@ filter_candidates( ...@@ -21,8 +21,9 @@ filter_candidates(
Backend *be, Backend *be,
Filter *f ) Filter *f )
{ {
return NULL; return idl_allids( be );
} }
#else #else
static ID_BLOCK *ava_candidates( Backend *be, Ava *ava, int type ); static ID_BLOCK *ava_candidates( Backend *be, Ava *ava, int type );
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include "slap.h" #include "slap.h"
#include "back-ldbm.h" #include "back-ldbm.h"
#ifndef SLAPD_SCHEMA_NOT_COMPAT
static int change_value(Backend *be, static int change_value(Backend *be,
DBCache *db, DBCache *db,
...@@ -25,6 +26,7 @@ static int change_value(Backend *be, ...@@ -25,6 +26,7 @@ static int change_value(Backend *be,
int int
(*idl_func)(Backend *, DBCache *, Datum, ID)); (*idl_func)(Backend *, DBCache *, Datum, ID));
static int index2prefix(int indextype); static int index2prefix(int indextype);
#endif
int int
index_add_entry( index_add_entry(
...@@ -32,6 +34,7 @@ index_add_entry( ...@@ -32,6 +34,7 @@ index_add_entry(
Entry *e Entry *e
) )
{ {
#ifndef SLAPD_SCHEMA_NOT_COMPAT
Attribute *ap; Attribute *ap;
struct berval bv; struct berval bv;
struct berval *bvals[2]; struct berval *bvals[2];
...@@ -74,10 +77,11 @@ index_add_entry( ...@@ -74,10 +77,11 @@ index_add_entry(
Debug( LDAP_DEBUG_TRACE, "<= index_add( %ld, \"%s\" ) 0\n", e->e_id, Debug( LDAP_DEBUG_TRACE, "<= index_add( %ld, \"%s\" ) 0\n", e->e_id,
e->e_ndn, 0 ); e->e_ndn, 0 );
#endif
return( 0 ); return( 0 );
} }
#ifndef SLAPD_SCHEMA_NOT_COMPAT
ID_BLOCK * ID_BLOCK *
index_read( index_read(
Backend *be, Backend *be,
...@@ -221,8 +225,8 @@ change_value( ...@@ -221,8 +225,8 @@ change_value(
return( rc ); return( rc );
}/* static int change_value() */ }
#endif
int int
index_change_values( index_change_values(
...@@ -418,6 +422,7 @@ done: ...@@ -418,6 +422,7 @@ done:
return( 0 ); return( 0 );
} }
#ifndef SLAPD_SCHEMA_NOT_COMPAT
static int static int
index2prefix( int indextype ) index2prefix( int indextype )
{ {
...@@ -440,3 +445,4 @@ index2prefix( int indextype ) ...@@ -440,3 +445,4 @@ index2prefix( int indextype )
return( prefix ); return( prefix );
} }
#endif
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment