From 97e88afb5ee53bd10ae7ee8008d46360183c4e59 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 17 Aug 1998 23:34:12 +0000 Subject: [PATCH] Sync the cache per Stuart Lynne --- servers/slapd/back-ldbm/dn2id.c | 2 +- servers/slapd/back-ldbm/idl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/back-ldbm/dn2id.c b/servers/slapd/back-ldbm/dn2id.c index c4116086b0..4202a6fb14 100644 --- a/servers/slapd/back-ldbm/dn2id.c +++ b/servers/slapd/back-ldbm/dn2id.c @@ -41,7 +41,7 @@ dn2id_add( data.dptr = (char *) &id; data.dsize = sizeof(ID); - rc = ldbm_cache_store( db, key, data, LDBM_INSERT ); + rc = ldbm_cache_store( db, key, data, LDBM_INSERT | LDBM_SYNC ); free( dn ); ldbm_cache_close( be, db ); diff --git a/servers/slapd/back-ldbm/idl.c b/servers/slapd/back-ldbm/idl.c index ef65444c3d..205b5b0648 100644 --- a/servers/slapd/back-ldbm/idl.c +++ b/servers/slapd/back-ldbm/idl.c @@ -172,7 +172,7 @@ idl_store( data.dptr = (char *) idl; data.dsize = (2 + idl->b_nmax) * sizeof(ID); - rc = ldbm_cache_store( db, key, data, LDBM_REPLACE ); + rc = ldbm_cache_store( db, key, data, LDBM_REPLACE | LDBM_SYNC ); /* Debug( LDAP_DEBUG_TRACE, "<= idl_store %d\n", rc, 0, 0 ); */ return( rc ); -- 2.39.5