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

slapcat doesn't return correct error status for bdb fatal error



[root@etoile ~]# slapcat -b dc=msr-inria,dc=inria,dc=fr
...
bdb(dc=msr-inria,dc=inria,dc=fr): pthread lock failed: Invalid argument
bdb(dc=msr-inria,dc=inria,dc=fr): PANIC: Invalid argument
bdb(dc=msr-inria,dc=inria,dc=fr): PANIC: DB_RUNRECOVERY: Fatal error, run database recovery
bdb(dc=msr-inria,dc=inria,dc=fr): PANIC: fatal region error detected; run recovery
bdb_db_close: database "dc=msr-inria,dc=inria,dc=fr": close failed: DB_RUNRECOVERY: Fatal error, run database recovery (-30975)
[root@etoile ~]# echo $?
0


It makes a bit difficult to know if slapcat-based backup were successful.
--
Guillaume Rousse
Moyens Informatiques - INRIA Futurs
Tel: 01 69 35 69 62