]> granicus.if.org Git - python/commit
Use a threadsafe private DBEnv for each bsddb compatibility interface
authorGregory P. Smith <greg@mad-scientist.com>
Sat, 27 Sep 2003 23:00:19 +0000 (23:00 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Sat, 27 Sep 2003 23:00:19 +0000 (23:00 +0000)
commit1eb41e22ab4288bef5883ee93d04e87f5b1fb5ca
treee5d734c4041100c63c9c48479902e615716dd252
parentc8083cf1cc375fa4df828a8a2241cf6617c111f4
Use a threadsafe private DBEnv for each bsddb compatibility interface
db that is opened.  DB_THREAD and DB_INIT_LOCK allow for multithreaded
access.  DB_PRIVATE prevents the DBEnv from using the filesystem
(making it only usable by this process; and in this implementation
using one DBEnv per bsddb database)
Lib/bsddb/__init__.py