]> git.sur5r.net Git - openldap/commit
Reimplement LDBM_SYNC/LDBM_NOSYNC code (dbnosync).
authorKurt Zeilenga <kurt@openldap.org>
Thu, 23 Sep 1999 19:49:20 +0000 (19:49 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 23 Sep 1999 19:49:20 +0000 (19:49 +0000)
commit35655c056f2ea487ec5bbf53026bfef59be12bbf
treeb10ad6d6c5154f035544ae4e0c6f0f85d89a8091
parent4acaa64c83e8185ddd7c60e75c27666ca35d7396
Reimplement LDBM_SYNC/LDBM_NOSYNC code (dbnosync).
Old code applied sync flags to store(), however supported DBMs
require such flags to be specified during open().  The new
code now applies flags in ldbm_cache_open (which calls ldbm_open).
ldbm_cache_close() now calls ldbm_sync().  This will force
a updating of on-disk contents after each LDAP operation.
The old code either failed to sync the on-disk contents until
close or synced on every store.   Per LDBM operation syncing
*should* be safe enough... real data safety requires transactions.
Removed nosync option from BDB2 as it is not compatible with
txn support.
Also added code to disable DBM level locking as slapd is only
process acessing the databases (dbnolocking).
21 files changed:
doc/man/man5/slapd.conf.5
include/ldbm.h
servers/slapd/back-bdb2/back-bdb2.h
servers/slapd/back-bdb2/config.c
servers/slapd/back-bdb2/dn2id.c
servers/slapd/back-bdb2/id2entry.c
servers/slapd/back-bdb2/idl.c
servers/slapd/back-bdb2/init.c
servers/slapd/back-bdb2/tools.c
servers/slapd/back-bdb2/txn.c
servers/slapd/back-ldbm/back-ldbm.h
servers/slapd/back-ldbm/config.c
servers/slapd/back-ldbm/dbcache.c
servers/slapd/back-ldbm/dn2id.c
servers/slapd/back-ldbm/id2entry.c
servers/slapd/back-ldbm/idl.c
servers/slapd/back-ldbm/init.c
servers/slapd/back-ldbm/nextid.c
servers/slapd/back-ldbm/tools.c
tests/data/slapd-bdb2-repl-slave.conf
tests/data/slapd-master.conf