diff options
author | unknown <sasha@mysql.sashanet.com> | 2001-10-09 20:56:24 -0600 |
---|---|---|
committer | unknown <sasha@mysql.sashanet.com> | 2001-10-09 20:56:24 -0600 |
commit | b5bc50e18c12a27cf04007ddcdb69de2115ab99a (patch) | |
tree | 58cc6265f722205aaca76380e2eb9137edfa1c05 /sql/repl_failsafe.cc | |
parent | 21e14c2ca38e0831a3b188b9a34d1b008e423a51 (diff) | |
download | mariadb-git-b5bc50e18c12a27cf04007ddcdb69de2115ab99a.tar.gz |
Added rpl_status. This is a midway commit to be able to pull so I can save
myself a run of compile-pentium-debug. I have not even tried to compile the
new code
sql/Makefile.am:
added repl_failsafe.*
sql/mysqld.cc:
added Rpl_status
sql/sql_show.cc:
added rpl_status
sql/structs.h:
rpl_status
Diffstat (limited to 'sql/repl_failsafe.cc')
-rw-r--r-- | sql/repl_failsafe.cc | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sql/repl_failsafe.cc b/sql/repl_failsafe.cc new file mode 100644 index 00000000000..541c53ea24a --- /dev/null +++ b/sql/repl_failsafe.cc @@ -0,0 +1,36 @@ +/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB & Sasha + + 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 2 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, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + +// Sasha Pachev <sasha@mysql.com> is currently in charge of this file + +#include "mysql_priv.h" +#include "repl_failsafe.h" + +RPL_STATUS rpl_status=RPL_NULL; +pthread_mutex_t LOCK_rpl_status; +pthread_cond_t COND_rpl_status; + +const char *rpl_role_type[] = {"","MASTER","SLAVE",NullS}; +TYPELIB rpl_role_typelib = {array_elements(rpl_role_type)-4,"", + rpl_role_type+1}; + +const char* rpl_status_type[] = {"AUTH_MASTER","ACTIVE_SLAVE","IDLE_SLAVE", + "LOST_SOLDIER","TROOP_SOLDIER", + "RECOVERY_CAPTAIN","NULL",NullS}; +TYPELIB rpl_status_typelib= {array_elements(rpl_status_type)-1,"", + rpl_status_type}; + + |