[pkg-db-devel] Bug#639421: libdb5.1: silently creates btree database when hash is requested
Florian Weimer
fw at deneb.enyo.de
Thu Sep 1 17:41:26 UTC 2011
* brian m. carlson:
> Berkeley DB creates a btree database even though hash is requested, and
> moreover, it does so silently.
>
> Steps to reproduce:
>
> * gcc foo.c -ldb
> * rm -fr /tmp/db
> * ./a.out /tmp/db
> * db5.1_stat -d /tmp/db/openpgp | grep Btree
Please try again with the -s option:
| If the database contains multiple databases and the -s flag is not
| specified, the statistics are for the internal database that
| describes the other databases the file contains, and not for the
| file as a whole.
Is there any particular reasony why you want to use hash databases?
They are rarely better than B-tree databases.
More information about the pkg-db-devel
mailing list