]> git.sur5r.net Git - openldap/commitdiff
Sync the cache per Stuart Lynne <sl@poste.com>
authorKurt Zeilenga <kurt@openldap.org>
Mon, 17 Aug 1998 23:34:12 +0000 (23:34 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 17 Aug 1998 23:34:12 +0000 (23:34 +0000)
servers/slapd/back-ldbm/dn2id.c
servers/slapd/back-ldbm/idl.c

index c4116086b00d5aab3d143a14f045956a3737c51d..4202a6fb14da4ee91cd5ccdb19c0ef50e3dda15a 100644 (file)
@@ -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 );
index ef65444c3d8ec60a19f40d9c0db9b654d5ee608f..205b5b06488554a8de51c0989632f984b7b43ddf 100644 (file)
@@ -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 );