Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
03d36a1e
Commit
03d36a1e
authored
Oct 11, 2010
by
Luis Soares
Browse files
Options
Browse Files
Download
Plain Diff
Automerged bzr bundle.
parents
2c986cf2
86de24ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
sql/repl_failsafe.cc
sql/repl_failsafe.cc
+2
-2
sql/repl_failsafe.h
sql/repl_failsafe.h
+2
-2
No files found.
sql/repl_failsafe.cc
View file @
03d36a1e
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
#define SLAVE_ERRMSG_SIZE (FN_REFLEN+64)
#define SLAVE_ERRMSG_SIZE (FN_REFLEN+64)
RPL_STATUS
rpl_status
=
RPL_NULL
;
ulong
rpl_status
=
RPL_NULL
;
mysql_mutex_t
LOCK_rpl_status
;
mysql_mutex_t
LOCK_rpl_status
;
mysql_cond_t
COND_rpl_status
;
mysql_cond_t
COND_rpl_status
;
HASH
slave_list
;
HASH
slave_list
;
...
@@ -68,7 +68,7 @@ static Slave_log_event* find_slave_event(IO_CACHE* log,
...
@@ -68,7 +68,7 @@ static Slave_log_event* find_slave_event(IO_CACHE* log,
functions like register_slave()) are working.
functions like register_slave()) are working.
*/
*/
void
change_rpl_status
(
RPL_STATUS
from_status
,
RPL_STATUS
to_status
)
void
change_rpl_status
(
ulong
from_status
,
ulong
to_status
)
{
{
mysql_mutex_lock
(
&
LOCK_rpl_status
);
mysql_mutex_lock
(
&
LOCK_rpl_status
);
if
(
rpl_status
==
from_status
||
rpl_status
==
RPL_ANY
)
if
(
rpl_status
==
from_status
||
rpl_status
==
RPL_ANY
)
...
...
sql/repl_failsafe.h
View file @
03d36a1e
...
@@ -26,7 +26,7 @@ typedef enum {RPL_AUTH_MASTER=0,RPL_IDLE_SLAVE,RPL_ACTIVE_SLAVE,
...
@@ -26,7 +26,7 @@ typedef enum {RPL_AUTH_MASTER=0,RPL_IDLE_SLAVE,RPL_ACTIVE_SLAVE,
RPL_LOST_SOLDIER
,
RPL_TROOP_SOLDIER
,
RPL_LOST_SOLDIER
,
RPL_TROOP_SOLDIER
,
RPL_RECOVERY_CAPTAIN
,
RPL_NULL
/* inactive */
,
RPL_RECOVERY_CAPTAIN
,
RPL_NULL
/* inactive */
,
RPL_ANY
/* wild card used by change_rpl_status */
}
RPL_STATUS
;
RPL_ANY
/* wild card used by change_rpl_status */
}
RPL_STATUS
;
extern
RPL_STATUS
rpl_status
;
extern
ulong
rpl_status
;
extern
mysql_mutex_t
LOCK_rpl_status
;
extern
mysql_mutex_t
LOCK_rpl_status
;
extern
mysql_cond_t
COND_rpl_status
;
extern
mysql_cond_t
COND_rpl_status
;
...
@@ -34,7 +34,7 @@ extern TYPELIB rpl_role_typelib;
...
@@ -34,7 +34,7 @@ extern TYPELIB rpl_role_typelib;
extern
const
char
*
rpl_role_type
[],
*
rpl_status_type
[];
extern
const
char
*
rpl_role_type
[],
*
rpl_status_type
[];
pthread_handler_t
handle_failsafe_rpl
(
void
*
arg
);
pthread_handler_t
handle_failsafe_rpl
(
void
*
arg
);
void
change_rpl_status
(
RPL_STATUS
from_status
,
RPL_STATUS
to_status
);
void
change_rpl_status
(
ulong
from_status
,
ulong
to_status
);
int
find_recovery_captain
(
THD
*
thd
,
MYSQL
*
mysql
);
int
find_recovery_captain
(
THD
*
thd
,
MYSQL
*
mysql
);
int
update_slave_list
(
MYSQL
*
mysql
,
Master_info
*
mi
);
int
update_slave_list
(
MYSQL
*
mysql
,
Master_info
*
mi
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment