#759597 slapd: should only dump/reload backends that need it

Package:
slapd
Source:
openldap
Description:
OpenLDAP server (slapd)
Submitter:
Ryan Tandy
Date:
2014-10-18 23:54:04 UTC
Severity:
minor
#759597#5
Date:
2014-08-28 20:36:30 UTC
From:
To:
The conditions where mdb and hdb/bdb need dumping/reloading are usually
going to be different. It would be nice if we would avoid dumping and
reloading databases that don't actually need it.

A proper fix for #759596 will probably get us most of the way there.

#759597#10
Date:
2014-10-18 21:30:39 UTC
From:
To:
Beyond the unnecessary (and failing:) dump/reload, I also got a gratis
DB_CONFIG file during upgrade from wheezy to 2.4.40-1.  So not only the
conditions differ, but also the methods, since MDB does not need this.

#759597#15
Date:
2014-10-18 23:51:09 UTC
From:
To:
Thanks; confirmed.

The comment in the maintainer script says:

# If there is an old DB_CONFIG file, restore it before
# running slapadd

which is fine, but then it also restores the default DB_CONFIG if there
wasn't an old one. That's probably not necessary, since the olcDbConfig
bits already specify the default DB configuration.