diff options
Diffstat (limited to 'sql/wsrep_var.h')
-rw-r--r-- | sql/wsrep_var.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/sql/wsrep_var.h b/sql/wsrep_var.h index 58d0374baa5..654b76be617 100644 --- a/sql/wsrep_var.h +++ b/sql/wsrep_var.h @@ -13,9 +13,13 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#if !defined (WSREP_VAR_H) && defined(WITH_WSREP) +#include <my_config.h> + +#ifndef WSREP_VAR_H #define WSREP_VAR_H +#ifdef WITH_WSREP + #define WSREP_CLUSTER_NAME "my_wsrep_cluster" #define WSREP_NODE_INCOMING_AUTO "AUTO" #define WSREP_START_POSITION_ZERO "00000000-0000-0000-0000-000000000000:-1" @@ -34,8 +38,10 @@ int wsrep_init_vars(); #define DEFAULT_ARGS (THD* thd, enum_var_type var_type) #define INIT_ARGS (const char* opt) +struct system_variables; +bool wsrep_causal_reads_update(struct system_variables *sv); + extern bool wsrep_on_update UPDATE_ARGS; -extern bool wsrep_causal_reads_update UPDATE_ARGS; extern bool wsrep_sync_wait_update UPDATE_ARGS; extern bool wsrep_start_position_check CHECK_ARGS; extern bool wsrep_start_position_update UPDATE_ARGS; @@ -83,4 +89,13 @@ extern bool wsrep_slave_threads_update UPDATE_ARGS; extern bool wsrep_desync_check CHECK_ARGS; extern bool wsrep_desync_update UPDATE_ARGS; +#else /* WITH_WSREP */ + +#define WSREP_NONE +#define wsrep_provider_init(X) +#define wsrep_init_vars() (1) +#define wsrep_start_position_init(X) +#define wsrep_sst_auth_init(X) + +#endif /* WITH_WSREP */ #endif /* WSREP_VAR_H */ |