Bug#639421: libdb5.1: silently creates btree database when hash is requested

2011-09-02 Thread brian m. carlson
On Thu, Sep 01, 2011 at 07:41:26PM +0200, Florian Weimer wrote: > 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

Bug#639421: [pkg-db-devel] Bug#639421: libdb5.1: silently creates btree database when hash is requested

2011-09-01 Thread Ondřej Surý
Try this, it's the db_stat which is wrong, the database is correctly created as DB_HASH. int main(int argc, char **argv) { int envflags = DB_INIT_TXN | DB_INIT_MPOOL; int flags = DB_RDONLY | DB_AUTO_COMMIT; DB_ENV *dbenv; DBTYPE type; DB *dbp; const

Bug#639421: libdb5.1: silently creates btree database when hash is requested

2011-09-01 Thread Florian Weimer
* 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: |

Bug#639421: libdb5.1: silently creates btree database when hash is requested

2011-08-26 Thread brian m. carlson
Package: libdb5.1 Version: 5.1.25-11 Severity: important 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 The last command s