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
7d276c3b
Commit
7d276c3b
authored
Apr 30, 2002
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Portability fix
parent
c8712a5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
sql/slave.cc
sql/slave.cc
+8
-4
sql/slave.h
sql/slave.h
+1
-1
No files found.
sql/slave.cc
View file @
7d276c3b
...
@@ -246,9 +246,10 @@ err:
...
@@ -246,9 +246,10 @@ err:
}
}
/* called from get_options() in mysqld.cc on start-up */
/* called from get_options() in mysqld.cc on start-up */
void
init_slave_skip_errors
(
char
*
arg
)
void
init_slave_skip_errors
(
const
char
*
arg
)
{
{
c
har
*
p
;
c
onst
char
*
p
;
my_bool
last_was_digit
=
0
;
my_bool
last_was_digit
=
0
;
if
(
bitmap_init
(
&
slave_error_mask
,
MAX_SLAVE_ERROR
,
0
))
if
(
bitmap_init
(
&
slave_error_mask
,
MAX_SLAVE_ERROR
,
0
))
{
{
...
@@ -275,8 +276,11 @@ void init_slave_skip_errors(char* arg)
...
@@ -275,8 +276,11 @@ void init_slave_skip_errors(char* arg)
}
}
}
}
// we assume we have a run lock on rli and that the both slave thread
/*
// are not running
We assume we have a run lock on rli and that the both slave thread
are not running
*/
int
purge_relay_logs
(
RELAY_LOG_INFO
*
rli
,
bool
just_reset
,
const
char
**
errmsg
)
int
purge_relay_logs
(
RELAY_LOG_INFO
*
rli
,
bool
just_reset
,
const
char
**
errmsg
)
{
{
DBUG_ENTER
(
"purge_relay_logs"
);
DBUG_ENTER
(
"purge_relay_logs"
);
...
...
sql/slave.h
View file @
7d276c3b
...
@@ -333,7 +333,7 @@ typedef struct st_table_rule_ent
...
@@ -333,7 +333,7 @@ typedef struct st_table_rule_ent
#define SLAVE_FORCE_ALL 4
#define SLAVE_FORCE_ALL 4
int
init_slave
();
int
init_slave
();
void
init_slave_skip_errors
(
char
*
arg
);
void
init_slave_skip_errors
(
c
onst
c
har
*
arg
);
int
flush_master_info
(
MASTER_INFO
*
mi
);
int
flush_master_info
(
MASTER_INFO
*
mi
);
int
flush_relay_log_info
(
RELAY_LOG_INFO
*
rli
);
int
flush_relay_log_info
(
RELAY_LOG_INFO
*
rli
);
int
register_slave_on_master
(
MYSQL
*
mysql
);
int
register_slave_on_master
(
MYSQL
*
mysql
);
...
...
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