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

Re: bdb corruption


I get an odd error when I do that:

# db_stat -d objectClass.bdb -s objectClass
db_stat: hash: incompatible hash function
db_stat: DB->open: objectClass.bdb:objectClass: Invalid argument

I looked at the man page but didn't see any way to list the subdatabases in a index file.

Any thoughts?


Howard Chu wrote:
In OpenLDAP 2.1 the index files use subdatabases. (This turned out to be a
bad idea, and OpenLDAP 2.2 no longer uses them.) To get the stats you're
interested in, you have to use the "-s" option in addition to "-d" :
	db_stat -d objectClass.bdb -s objectClass