![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archivebsddb3 locking questions
From: Eric S. Johansson <esj@harvee.org>
Date: Sat Dec 31 2005 - 16:29:37 CET
are there any simple examples of how to do record locking with bsddb3?
the bsddb3 documentation is reasonably opaque. For example, the DB
dbe = DBEnv.open()
dbe.set_lk_detect(...DB_LOCK_YOUNGEST)
dbe.lock_id()
dbi = db.DB()
dbi.open(..)
lock = dbe.get_lock()
(the above pattern is for record locking but for database locking, the
if you close the database, should you automatically close the env or (as
anything else I'm missing?
thanks for any guidance,
|