From: Kurt Zeilenga Date: Mon, 17 Aug 1998 23:34:12 +0000 (+0000) Subject: Sync the cache per Stuart Lynne X-Git-Tag: OPENLDAP_REL_ENG_1_0_0~35 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=97e88afb5ee53bd10ae7ee8008d46360183c4e59;p=openldap Sync the cache per Stuart Lynne --- 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 );