[pybsddb] Where is the bug tracker? Multi-threaded len() bug

Jesus Cea jcea at argo.es
Fri Dec 26 17:43:54 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yong Li wrote:
> Where is the bug tracker?

Not bug tracker (yet).

> db_env.open(db_path, bsddb.db.DB_CREATE | bsddb.db.DB_INIT_MPOOL |
> bsddb.db.DB_INIT_CDB)
> cache = bsddb.db.DB(db_env)
> cache.open(filename='cache.db', dbname='cache',
> dbtype=bsddb.db.DB_BTREE, flags=bsddb.db.DB_CREATE)
> ...
> 
> len(cache):
> 900
> 
> after adding some items in another process, len(cache) still returns
> 900. I think the value is being cached somewhere and not being
> refreshed.

Please, post the entire code to replicate the problem.

- --
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
jcea at jcea.es - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
jabber / xmpp:jcea at jabber.org         _/_/    _/_/          _/_/_/_/_/
.                              _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBSVUJxZlgi5GaxT1NAQKjcwP/SfjCtObz2U4rqeLm8o3iP29VQqN60oEM
tLRjxdwgDhJ2rdbMEy7Pd8l5Rxkqyq32VGAcDlwSMd8hukfI+eqZL7Pg7adKVRe3
0qrhV9V+rCpJCDwGA8AuIsnLK41r5xYOBzNTJg3PkCGM901P003eiCxgJi8VsFtY
iop3Jmz/v/M=
=s7ta
-----END PGP SIGNATURE-----



More information about the pybsddb mailing list