homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gregory.p.smith
Recipients
Date 2003年09月12日.19:10:23
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=413
Looking at bsddb/__init__.py (where the old bsddb compatibility 
interface is implemented) I don't see why the hammer.py attached 
below should cause a problem. The database is opened with 
DB_THREAD using a private environment (no DBEnv passed to DB()). 
 
I definately see potential threading problems with the _DBWithCursor 
class defined there if any of the methods using a cursor are used (the 
cursor could be shared across threads; that's a no-no). But in the 
context of hammer.py that doesn't happen so I wouldn't have expected 
a problem. Unless perhaps creating the DB withou a DBEnv implies 
that the DB_THREAD flag won't work. The DB_RECOVER flag is only 
useful for opening existing DBEnv's; we have none. 
 
I've got to pop offline for a bit now but i'll try a hammer.py modified to 
use direct DB calls (for easier playing around with and bug reporting to 
sleepycat if turns out to be a bug on their end) later tonight. 
 
PS keiths response is in the sleepycat.txt attachment if you open the 
URL to this bug report on sourceforge. 
 
History
Date User Action Args
2007年08月23日 14:15:03adminlinkissue775414 messages
2007年08月23日 14:15:03admincreate

AltStyle によって変換されたページ (->オリジナル) /