[Date Prev][Date Next] [Chronological] [Thread] [Top]

dbcachenowsync sync_daemon (ITS#744)

Full_Name: Randy Kunkee
Version: 1.2.11
OS: Alpha OSF 4.0e
URL: ftp://ftp.openldap.org/incoming/sync-1.2.11.patch
Submission from: (NULL) (

A couple of people have requested my enhancements to 1.2.11's slapd server
which synchronizes the ldbm backend to disk 30 seconds after changes have
been made to the database.

This is done by modifying the add, modify, delete, and modrdn backend
commands to set a dirty flag, which is then checked by a thread every
60 seconds.  The value is currently hardcoded, since I didn't bother
to write anything to configure this from slapd.conf.  Since the goal is
to reduce load, the sync daemon waits until there are no other active
threads before performing it's task.  All this policy stuff is easy to
recode and others may want to implement something different.  In fact,
I added a number of other values to the structure, but have not actually
implemented them in the code.

The code is attached to this ITS.