![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have an application structure where there is a long running server (multi-fork processes), with a few admin processes started periodically by cron which all share the same single Berkeley DB environment (with very many DB's in this environment). I'm trying to use is_alive and failchk from a dedicated "watchdog" process to handle forks dying with locks held. I'm getting "is_alive method specified but no thread region allocated" whenever I call DBENV->set_isalive(). I'm not sure what this error means. I've even tried using DB_THREAD during environment and db init/open, but that doesn't help either. |
|
Has anyone managed to get is_alive and failchk working or can anyone share some working example code? I really don't want to be looking at using DB_REGISTER. From what I can understand of the docs, the DB_REGISTER method seems to be more suited to serializing recovery rather than being able to determine (by polling failchk) whether recovery needs to be performed. TIA. Steve. |
#3
| |||
| |||
|
|
You have to call the function "dbenv->set_thread_count(dbenv, num_of_threads )" before opening the environment. "num_of_threads" must be greater than 8. ciao, Luca |
![]() |
| Thread Tools | |
| Display Modes | |
| |