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
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
* 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:
|
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
4 matches
Mail list logo