mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Here comes a nasty patch, although I am not ready to push it yet. I will
first pull, merge,test, and get it to work. The main change is the new replication code - now we have two slave threads SQL thread and I/O thread. I have also re-written a lot of the code to prepare for multi-master implementation. I also documented IO_CACHE quite extensively and to some extend, THD class.
This commit is contained in:
@@ -1168,6 +1168,15 @@ int mysqld_show(THD *thd, const char *wild, show_var_st *variables)
|
||||
case SHOW_RPL_STATUS:
|
||||
net_store_data(&packet2, rpl_status_type[(int)rpl_status]);
|
||||
break;
|
||||
case SHOW_SLAVE_RUNNING:
|
||||
{
|
||||
LOCK_ACTIVE_MI;
|
||||
net_store_data(&packet2, (active_mi->slave_running &&
|
||||
active_mi->rli.slave_running)
|
||||
? "ON" : "OFF");
|
||||
UNLOCK_ACTIVE_MI;
|
||||
break;
|
||||
}
|
||||
case SHOW_OPENTABLES:
|
||||
net_store_data(&packet2,(uint32) cached_tables());
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user