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

(ITS#4201) readonly tools dirty alock for nothing



Full_Name: Aaron Richton
Version: 2.3.12
OS: Solaris 9
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (68.197.31.57)


If you run a tool such as slapcat on a empty directory (bdb/hdb) a "dirty" alock
is left behind. slapcat should mark the alock as clean and/or otherwise not
touch it (I don't care whether it actually creates the db or not).

Replicate:

./run -b hdb test000
rm testrun/db.1.a/* 
../servers/slapd/slapd -T cat -f testrun/slapd.1.conf -b "o=OpenLDAP
Project,l=Internet"
../servers/slapd/slapd -T add -f testrun/slapd.1.conf -b "o=OpenLDAP
Project,l=Internet"

Note that the slapadd complains "bdb_db_open: unclean shutdown detected;
attempting recovery." In the not-so-distant past this was not the case.