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

back-bdb add.c/modify.c/modrdn.c do not report checkpoint failures (ITS#2830)

Full_Name: Frank Swasey
Version: 2.1.22
OS: RedHat 9
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

In researching why db_archive is telling me that none of the 5 10Meg logs (which
are several days old) are no longer needed even though I have "checkpoint 1024
30" in my slapd.conf file and noticing the following sequence of output in
syslog today:

slapd[7921]: conn=1298909 op=1 SRCH attr=mailRoutingAddress
slapd[7921]: bdb(dc=uvm,dc=edu): DB_ENV->log_flush: LSN past current end-of-log
slapd[7921]: bdb(dc=uvm,dc=edu): uidNumber.bdb: unable to flush page: 0
slapd[7921]: bdb(dc=uvm,dc=edu): txn_checkpoint: failed to flush the buffer
cache Invalid argument

I have found that while init.c catches the return code from TXN_CHECKPOINT and
displays an error message if it fails, that add.c, modify.c and modrdn.c all
call TXN_CHECKPOINT and do NOT check/report any errors.