- ctdb->db_directory = options.db_dir;
- ctdb->db_directory_persistent = options.db_dir_persistent;
- ctdb->db_directory_state = options.db_dir_state;
+ ctdb->db_directory = ctdb_config.dbdir_volatile;
+ ctdb->db_directory_persistent = ctdb_config.dbdir_persistent;
+ ctdb->db_directory_state = ctdb_config.dbdir_state;
+
+ if (ctdb_config.lock_debug_script != NULL) {
+ ret = setenv("CTDB_DEBUG_LOCKS",
+ ctdb_config.lock_debug_script,
+ 1);
+ if (ret != 0) {
+ D_ERR("Failed to set up lock debugging (%s)\n",
+ strerror(ret));
+ goto fail;
+ }
+ }
+
+ /*
+ * Event setup/options
+ */
+ if (ctdb_config.event_debug_script != NULL) {
+ ret = setenv("CTDB_DEBUG_HUNG_SCRIPT",
+ ctdb_config.event_debug_script,
+ 1);
+ if (ret != 0) {
+ D_ERR("Failed to set up event script debugging (%s)\n",
+ strerror(ret));
+ goto fail;
+ }
+ }