[ python-Bugs-1117761 ] BSDDB openhash
SourceForge.net
noreply at sourceforge.net
Thu Feb 10 01:33:36 CET 2005
Bugs item #1117761, was opened at 2005-02-07 10:24
Message generated for change (Comment added) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1117761&group_id=5470
Category: Extension Modules
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Andrea Bolzonella (bolzonella)
Assigned to: Nobody/Anonymous (nobody)
Summary: BSDDB openhash
Initial Comment:
Python 2.4 (#1, Dec 8 2004, 18:57:30)
[GCC 3.3.3 (SuSE Linux)] on linux2
>>> import bsddb
>>> h = bsddb.hashopen('test','c',cachesize=100)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/home/alex/DLD/lib/python2.4/bsddb/__init__.py", line
288, in hashopen
bsddb._db.DBInvalidArgError: (22, 'Invalid argument --
DB->set_cachesize: method not permitted in shared
environment')
I replace bsddb.hashopen with a 2.3.3 version and it works.
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2005-02-10 01:33
Message:
Logged In: YES
user_id=21627
Apparently, this is caused by hashopen now allocated a
DBEnv. This, in turn, is necessary to allow multiple threads
to access the same database simultaneously.
I'm unsure why bsddb does not support shared access and
having a cache size simultaneously; it might be best to
disallow the cachesize argument, and require users who want
to specify it to use DB.open explicitly (with no environment).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1117761&group_id=5470
More information about the Python-bugs-list
mailing list