From ef7b181f8baada44c85d1d90cc94641dc00791f5 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sat, 1 Sep 2001 05:00:27 +0000 Subject: [PATCH] Open databases using WRCREAT not READER. --- servers/slapd/back-ldbm/filterindex.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/servers/slapd/back-ldbm/filterindex.c b/servers/slapd/back-ldbm/filterindex.c index f71c4f13ff..c6df7e2d2c 100644 --- a/servers/slapd/back-ldbm/filterindex.c +++ b/servers/slapd/back-ldbm/filterindex.c @@ -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 -- 2.39.5