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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
8c6a01bf
Commit
8c6a01bf
authored
Oct 08, 2001
by
sasha@mysql.sashanet.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge work:/home/bk/mysql-4.0
into mysql.sashanet.com:/home/sasha/src/bk/mysql-4.0
parents
46a660f4
b13bd81c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
4 deletions
+28
-4
mysql-test/mysql-test-run.sh
mysql-test/mysql-test-run.sh
+3
-3
mysql-test/r/rpl_failsafe.result
mysql-test/r/rpl_failsafe.result
+11
-0
mysql-test/t/rpl_failsafe.test
mysql-test/t/rpl_failsafe.test
+5
-0
sql/mysqld.cc
sql/mysqld.cc
+9
-1
No files found.
mysql-test/mysql-test-run.sh
View file @
8c6a01bf
...
@@ -592,7 +592,7 @@ start_master()
...
@@ -592,7 +592,7 @@ start_master()
if
[
-z
"
$DO_BENCH
"
]
if
[
-z
"
$DO_BENCH
"
]
then
then
master_args
=
"--no-defaults --log-bin=
$MYSQL_TEST_DIR
/var/log/master-bin
\
master_args
=
"--no-defaults --log-bin=
$MYSQL_TEST_DIR
/var/log/master-bin
\
--server-id=1
\
--server-id=1
--rpl-recovery-rank=1
\
--basedir=
$MY_BASEDIR
\
--basedir=
$MY_BASEDIR
\
--port=
$MASTER_MYPORT
\
--port=
$MASTER_MYPORT
\
--exit-info=256
\
--exit-info=256
\
...
@@ -609,7 +609,7 @@ start_master()
...
@@ -609,7 +609,7 @@ start_master()
$EXTRA_MASTER_OPT
$EXTRA_MASTER_MYSQLD_OPT
"
$EXTRA_MASTER_OPT
$EXTRA_MASTER_MYSQLD_OPT
"
else
else
master_args
=
"--no-defaults --log-bin=
$MYSQL_TEST_DIR
/var/log/master-bin
\
master_args
=
"--no-defaults --log-bin=
$MYSQL_TEST_DIR
/var/log/master-bin
\
--server-id=1
\
--server-id=1
--rpl-recovery-rank=1
\
--basedir=
$MY_BASEDIR
\
--basedir=
$MY_BASEDIR
\
--port=
$MASTER_MYPORT
\
--port=
$MASTER_MYPORT
\
--datadir=
$MASTER_MYDDIR
\
--datadir=
$MASTER_MYDDIR
\
...
@@ -664,7 +664,7 @@ start_slave()
...
@@ -664,7 +664,7 @@ start_slave()
--master-host=127.0.0.1
\
--master-host=127.0.0.1
\
--master-password=
\
--master-password=
\
--master-port=
$MASTER_MYPORT
\
--master-port=
$MASTER_MYPORT
\
--server-id=2"
--server-id=2
--rpl-recovery-rank=2
"
else
else
master_info
=
$SLAVE_MASTER_INFO
master_info
=
$SLAVE_MASTER_INFO
fi
fi
...
...
mysql-test/r/rpl_failsafe.result
0 → 100644
View file @
8c6a01bf
slave stop;
reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
slave start;
show variables like 'rpl_recovery_rank';
Variable_name Value
rpl_recovery_rank 1
show variables like 'rpl_recovery_rank';
Variable_name Value
rpl_recovery_rank 2
mysql-test/t/rpl_failsafe.test
0 → 100644
View file @
8c6a01bf
source
include
/
master
-
slave
.
inc
;
connection
master
;
show
variables
like
'rpl_recovery_rank'
;
connection
slave
;
show
variables
like
'rpl_recovery_rank'
;
sql/mysqld.cc
View file @
8c6a01bf
...
@@ -332,6 +332,8 @@ const char *sql_mode_str="OFF";
...
@@ -332,6 +332,8 @@ const char *sql_mode_str="OFF";
const
char
*
default_tx_isolation_name
;
const
char
*
default_tx_isolation_name
;
enum_tx_isolation
default_tx_isolation
=
ISO_READ_COMMITTED
;
enum_tx_isolation
default_tx_isolation
=
ISO_READ_COMMITTED
;
uint
rpl_recovery_rank
=
0
;
#ifdef HAVE_GEMINI_DB
#ifdef HAVE_GEMINI_DB
const
char
*
gemini_recovery_options_str
=
"FULL"
;
const
char
*
gemini_recovery_options_str
=
"FULL"
;
#endif
#endif
...
@@ -2608,7 +2610,8 @@ enum options {
...
@@ -2608,7 +2610,8 @@ enum options {
OPT_DO_PSTACK
,
OPT_REPORT_HOST
,
OPT_DO_PSTACK
,
OPT_REPORT_HOST
,
OPT_REPORT_USER
,
OPT_REPORT_PASSWORD
,
OPT_REPORT_PORT
,
OPT_REPORT_USER
,
OPT_REPORT_PASSWORD
,
OPT_REPORT_PORT
,
OPT_SHOW_SLAVE_AUTH_INFO
,
OPT_OLD_RPL_COMPAT
,
OPT_SHOW_SLAVE_AUTH_INFO
,
OPT_OLD_RPL_COMPAT
,
OPT_SLAVE_LOAD_TMPDIR
,
OPT_NO_MIX_TYPE
OPT_SLAVE_LOAD_TMPDIR
,
OPT_NO_MIX_TYPE
,
OPT_RPL_RECOVERY_RANK
};
};
static
struct
option
long_options
[]
=
{
static
struct
option
long_options
[]
=
{
...
@@ -2733,6 +2736,7 @@ static struct option long_options[] = {
...
@@ -2733,6 +2736,7 @@ static struct option long_options[] = {
{
"report-user"
,
required_argument
,
0
,
(
int
)
OPT_REPORT_USER
},
{
"report-user"
,
required_argument
,
0
,
(
int
)
OPT_REPORT_USER
},
{
"report-password"
,
required_argument
,
0
,
(
int
)
OPT_REPORT_PASSWORD
},
{
"report-password"
,
required_argument
,
0
,
(
int
)
OPT_REPORT_PASSWORD
},
{
"report-port"
,
required_argument
,
0
,
(
int
)
OPT_REPORT_PORT
},
{
"report-port"
,
required_argument
,
0
,
(
int
)
OPT_REPORT_PORT
},
{
"rpl-recovery-rank"
,
required_argument
,
0
,
(
int
)
OPT_RPL_RECOVERY_RANK
},
{
"safe-mode"
,
no_argument
,
0
,
(
int
)
OPT_SAFE
},
{
"safe-mode"
,
no_argument
,
0
,
(
int
)
OPT_SAFE
},
{
"safe-show-database"
,
no_argument
,
0
,
(
int
)
OPT_SAFE_SHOW_DB
},
{
"safe-show-database"
,
no_argument
,
0
,
(
int
)
OPT_SAFE_SHOW_DB
},
{
"safe-user-create"
,
no_argument
,
0
,
(
int
)
OPT_SAFE_USER_CREATE
},
{
"safe-user-create"
,
no_argument
,
0
,
(
int
)
OPT_SAFE_USER_CREATE
},
...
@@ -3032,6 +3036,7 @@ struct show_var_st init_vars[]= {
...
@@ -3032,6 +3036,7 @@ struct show_var_st init_vars[]= {
{
"protocol_version"
,
(
char
*
)
&
protocol_version
,
SHOW_INT
},
{
"protocol_version"
,
(
char
*
)
&
protocol_version
,
SHOW_INT
},
{
"record_buffer"
,
(
char
*
)
&
my_default_record_cache_size
,
SHOW_LONG
},
{
"record_buffer"
,
(
char
*
)
&
my_default_record_cache_size
,
SHOW_LONG
},
{
"record_rnd_buffer"
,
(
char
*
)
&
record_rnd_cache_size
,
SHOW_LONG
},
{
"record_rnd_buffer"
,
(
char
*
)
&
record_rnd_cache_size
,
SHOW_LONG
},
{
"rpl_recovery_rank"
,
(
char
*
)
&
rpl_recovery_rank
,
SHOW_LONG
},
{
"query_buffer_size"
,
(
char
*
)
&
query_buff_size
,
SHOW_LONG
},
{
"query_buffer_size"
,
(
char
*
)
&
query_buff_size
,
SHOW_LONG
},
{
"safe_show_database"
,
(
char
*
)
&
opt_safe_show_db
,
SHOW_BOOL
},
{
"safe_show_database"
,
(
char
*
)
&
opt_safe_show_db
,
SHOW_BOOL
},
{
"server_id"
,
(
char
*
)
&
server_id
,
SHOW_LONG
},
{
"server_id"
,
(
char
*
)
&
server_id
,
SHOW_LONG
},
...
@@ -3452,6 +3457,9 @@ static void get_options(int argc,char **argv)
...
@@ -3452,6 +3457,9 @@ static void get_options(int argc,char **argv)
safemalloc_mem_limit
=
atoi
(
optarg
);
safemalloc_mem_limit
=
atoi
(
optarg
);
#endif
#endif
break
;
break
;
case
OPT_RPL_RECOVERY_RANK
:
rpl_recovery_rank
=
atoi
(
optarg
);
break
;
case
OPT_SLAVE_LOAD_TMPDIR
:
case
OPT_SLAVE_LOAD_TMPDIR
:
slave_load_tmpdir
=
my_strdup
(
optarg
,
MYF
(
MY_FAE
));
slave_load_tmpdir
=
my_strdup
(
optarg
,
MYF
(
MY_FAE
));
break
;
break
;
...
...
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