mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-18 21:04:45 -05:00
Sync the cache per Stuart Lynne <sl@poste.com>
This commit is contained in:
parent
fa2da63ca4
commit
97e88afb5e
2 changed files with 2 additions and 2 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue