2018-04-18 13:21:07 +03:00
/*
CTDB daemon config handling
Copyright ( C ) Martin Schwenke 2018
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 3 of the License , or
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
along with this program ; if not , see < http : //www.gnu.org/licenses/>.
*/
# ifndef __CTDB_CONFIG_H__
# define __CTDB_CONFIG_H__
2019-08-19 05:17:20 +03:00
# include "conf/conf.h"
2018-04-18 13:21:07 +03:00
struct ctdb_config {
/* Cluster */
const char * transport ;
const char * node_address ;
2022-01-10 11:18:14 +03:00
const char * cluster_lock ;
2018-04-18 13:21:07 +03:00
const char * recovery_lock ;
2022-01-15 05:02:02 +03:00
int leader_timeout ;
2022-01-10 06:15:25 +03:00
bool leader_capability ;
2018-04-18 13:21:07 +03:00
/* Database */
const char * dbdir_volatile ;
const char * dbdir_persistent ;
const char * dbdir_state ;
const char * lock_debug_script ;
2018-08-20 08:01:50 +03:00
bool tdb_mutexes ;
2018-04-18 13:21:07 +03:00
/* Event */
const char * event_debug_script ;
2018-08-21 06:41:22 +03:00
/* Failover */
bool failover_disabled ;
2018-04-18 13:21:07 +03:00
/* Legacy */
2018-08-20 06:35:33 +03:00
bool realtime_scheduling ;
2018-04-18 13:21:07 +03:00
bool lmaster_capability ;
bool start_as_stopped ;
bool start_as_disabled ;
const char * script_log_level ;
} ;
extern struct ctdb_config ctdb_config ;
2024-06-22 04:27:22 +03:00
int ctdb_config_load ( TALLOC_CTX * mem_ctx , struct conf_context * * conf ) ;
2018-04-18 13:21:07 +03:00
# endif /* __CTDB_CONFIG_H__ */