[pybsddb] environment close and DBRunRecovery

Pierre LEBRECH pierre.lebrech at laposte.net
Tue Sep 9 09:56:20 CEST 2008


Hello,

I have one process which wants to close an environment. But this process
encounters difficulties to close the environment when this one returns a
DBRunRecovery error.

So, how may I close an environment when it returns a DBRunRecovery error?


PS : context (some explanations) :

one process (written in C) creates and recovers (sometimes) the
environment. A secondary process (written with python) uses this
environment. When the first process dies, it recreates the environment
without any problem. Then, the secondary process detects that the
previous environment was recovered. So, it tries to close it and want to
reopen the recovered one. OK. This secondary process can open the new
environment but cannot close the old one.



More information about the pybsddb mailing list