]> git.sur5r.net Git - openldap/commitdiff
Open databases using WRCREAT not READER.
authorKurt Zeilenga <kurt@openldap.org>
Sat, 1 Sep 2001 05:00:27 +0000 (05:00 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 1 Sep 2001 05:00:27 +0000 (05:00 +0000)
servers/slapd/back-ldbm/filterindex.c

index f71c4f13ff8270e791fb283b36569782f8a30d61..c6df7e2d2c1b7bb7c91350a0a4a5351c43055253 100644 (file)
@@ -254,7 +254,7 @@ presence_candidates(
                return idl;
        }
 
-       db = ldbm_cache_open( be, dbname, LDBM_SUFFIX, LDBM_READER );
+       db = ldbm_cache_open( be, dbname, LDBM_SUFFIX, LDBM_WRCREAT );
        
        if ( db == NULL ) {
 #ifdef NEW_LOGGING
@@ -423,7 +423,7 @@ equality_candidates(
                return idl;
        }
 
-       db = ldbm_cache_open( be, dbname, LDBM_SUFFIX, LDBM_READER );
+       db = ldbm_cache_open( be, dbname, LDBM_SUFFIX, LDBM_WRCREAT );
        
        if ( db == NULL ) {
 #ifdef NEW_LOGGING
@@ -612,7 +612,7 @@ approx_candidates(
                return idl;
        }
 
-       db = ldbm_cache_open( be, dbname, LDBM_SUFFIX, LDBM_READER );
+       db = ldbm_cache_open( be, dbname, LDBM_SUFFIX, LDBM_WRCREAT );
        
        if ( db == NULL ) {
 #ifdef NEW_LOGGING
@@ -854,7 +854,7 @@ substring_candidates(
                return idl;
        }
 
-       db = ldbm_cache_open( be, dbname, LDBM_SUFFIX, LDBM_READER );
+       db = ldbm_cache_open( be, dbname, LDBM_SUFFIX, LDBM_WRCREAT );
        
        if ( db == NULL ) {
 #ifdef NEW_LOGGING