diff options
author | unknown <heikki@hundin.mysql.fi> | 2005-01-25 22:11:21 +0200 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2005-01-25 22:11:21 +0200 |
commit | 7ff1db2d6262494380885d2a5b68d4e099f31c9e (patch) | |
tree | 4d99fb4741c15a68c5f9010ff6d452600f686d8e /sql/set_var.cc | |
parent | d3db70de4c6027b9ae62b0814cdd45718e58a556 (diff) | |
download | mariadb-git-7ff1db2d6262494380885d2a5b68d4e099f31c9e.tar.gz |
sql_class.h, set_var.cc, mysqld.cc:
Add settable variables for semi-sync replication
sql/mysqld.cc:
Add settable variables for semi-sync replication
sql/set_var.cc:
Add settable variables for semi-sync replication
sql/sql_class.h:
Add settable variables for semi-sync replication
Diffstat (limited to 'sql/set_var.cc')
-rw-r--r-- | sql/set_var.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sql/set_var.cc b/sql/set_var.cc index 1237c31075c..1807e0efbed 100644 --- a/sql/set_var.cc +++ b/sql/set_var.cc @@ -333,6 +333,14 @@ sys_var_thd_storage_engine sys_storage_engine("storage_engine", &SV::table_type); #ifdef HAVE_REPLICATION sys_var_sync_binlog_period sys_sync_binlog_period("sync_binlog", &sync_binlog_period); +sys_var_thd_ulong sys_sync_replication("sync_replication", + &SV::sync_replication); +sys_var_thd_ulong sys_sync_replication_slave_id( + "sync_replication_slave_id", + &SV::sync_replication_slave_id); +sys_var_thd_ulong sys_sync_replication_timeout( + "sync_replication_timeout", + &SV::sync_replication_timeout); #endif sys_var_bool_ptr sys_sync_frm("sync_frm", &opt_sync_frm); sys_var_long_ptr sys_table_cache_size("table_cache", @@ -605,6 +613,9 @@ sys_var *sys_variables[]= &sys_storage_engine, #ifdef HAVE_REPLICATION &sys_sync_binlog_period, + &sys_sync_replication, + &sys_sync_replication_slave_id, + &sys_sync_replication_timeout, #endif &sys_sync_frm, &sys_table_cache_size, @@ -850,6 +861,9 @@ struct show_var_st init_vars[]= { {sys_storage_engine.name, (char*) &sys_storage_engine, SHOW_SYS}, #ifdef HAVE_REPLICATION {sys_sync_binlog_period.name,(char*) &sys_sync_binlog_period, SHOW_SYS}, + {sys_sync_replication.name, (char*) &sys_sync_replication, SHOW_SYS}, + {sys_sync_replication_slave_id.name, (char*) &sys_sync_replication_slave_id,SHOW_SYS}, + {sys_sync_replication_timeout.name, (char*) &sys_sync_replication_timeout,SHOW_SYS}, #endif {sys_sync_frm.name, (char*) &sys_sync_frm, SHOW_SYS}, #ifdef HAVE_TZNAME |