summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/__init__.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2006-06-08 05:38:11 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2006-06-08 05:38:11 (GMT)
commitdda291c079e6c8e074c99df1bfef52936d68fa1b (patch)
treef6dab1b00036d1627feefa8531eed71d16517333 /Lib/bsddb/__init__.py
parentff7d991a07f21a0a368f422efcf17b27c363e1d2 (diff)
downloadcpython-dda291c079e6c8e074c99df1bfef52936d68fa1b.zip
cpython-dda291c079e6c8e074c99df1bfef52936d68fa1b.tar.gz
cpython-dda291c079e6c8e074c99df1bfef52936d68fa1b.tar.bz2
* Turn the deadlock situation described in SF bug #775414 into a
DBDeadLockError exception. * add the test case for my previous dbtables commit.
Diffstat (limited to 'Lib/bsddb/__init__.py')
-rw-r--r--Lib/bsddb/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/bsddb/__init__.py b/Lib/bsddb/__init__.py
index c004c08..d5ab000 100644
--- a/Lib/bsddb/__init__.py
+++ b/Lib/bsddb/__init__.py
@@ -344,6 +344,7 @@ def _openDBEnv(cachesize):
else:
raise error, "cachesize must be >= 20480"
e.open('.', db.DB_PRIVATE | db.DB_CREATE | db.DB_THREAD | db.DB_INIT_LOCK | db.DB_INIT_MPOOL)
+ e.set_lk_detect(db.DB_LOCK_DEFAULT)
return e
def _checkflag(flag, file):