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 2005年11月05日.16:31:01
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=413
oh good i see you already suggested the simple thread
calling lock_detect that I was about to suggest. :)
regardless a thread isn't needed. see dbenv.set_lk_detect which
tells BerkeleyDB to run deadlock detection automatically
anytime a lock conflict occurs.
http://www.sleepycat.com/docs/api_c/env_set_lk_detect.html
Just add e.set_lk_detect(db.DB_LOCK_DEFAULT) to
bsddb/__init__.py's _openDBEnv() function.
That causes hammer.py to get DBLockDeadlockError exceptions
as expected (dying if the main thread gets one). No
lock_detect thread needed.
The bsddb legacy interface in __init__.py could have all of
its database accesses wrapped in the
bsddb.dbutils.DeadlockWrap function. to prevent this. 
(testing now)
History
Date User Action Args
2007年08月23日 14:15:04adminlinkissue775414 messages
2007年08月23日 14:15:04admincreate

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