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
80a523db
Commit
80a523db
authored
Nov 11, 2013
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-5116 MariaDB upgrade breaks replication
mysql_upgrade should do --skip-write-binlog by default
parent
feea10a4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
client/mysql_upgrade.c
client/mysql_upgrade.c
+3
-4
mysql-test/suite/rpl/t/rpl_mysql_upgrade.test
mysql-test/suite/rpl/t/rpl_mysql_upgrade.test
+2
-3
No files found.
client/mysql_upgrade.c
View file @
80a523db
...
@@ -156,11 +156,10 @@ static struct my_option my_long_options[]=
...
@@ -156,11 +156,10 @@ static struct my_option my_long_options[]=
"version
\'
of the program is the version of the MySQL server with which it "
"version
\'
of the program is the version of the MySQL server with which it "
"was built/distributed."
,
&
opt_version_check
,
&
opt_version_check
,
0
,
"was built/distributed."
,
&
opt_version_check
,
&
opt_version_check
,
0
,
GET_BOOL
,
NO_ARG
,
1
,
0
,
0
,
0
,
0
,
0
},
GET_BOOL
,
NO_ARG
,
1
,
0
,
0
,
0
,
0
,
0
},
{
"write-binlog"
,
OPT_WRITE_BINLOG
,
{
"write-binlog"
,
OPT_WRITE_BINLOG
,
"All commands including those, "
"All commands including mysqlcheck are binlogged. Enabled by default;"
"issued by mysqlcheck, are written to the binary log."
,
"use --skip-write-binlog when commands should not be sent to replication slaves."
,
&
opt_write_binlog
,
&
opt_write_binlog
,
0
,
GET_BOOL
,
NO_ARG
,
&
opt_write_binlog
,
&
opt_write_binlog
,
0
,
GET_BOOL
,
NO_ARG
,
1
,
0
,
0
,
0
,
0
,
0
},
0
,
0
,
0
,
0
,
0
,
0
},
{
0
,
0
,
0
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
}
{
0
,
0
,
0
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
}
};
};
...
...
mysql-test/suite/rpl/t/rpl_mysql_upgrade.test
View file @
80a523db
...
@@ -23,8 +23,7 @@ connection master;
...
@@ -23,8 +23,7 @@ connection master;
let
$before_position
=
query_get_value
(
SHOW
MASTER
STATUS
,
Position
,
1
);
let
$before_position
=
query_get_value
(
SHOW
MASTER
STATUS
,
Position
,
1
);
#With '--force' option, mysql_upgrade always executes all sql statements for upgrading.
#With '--force' option, mysql_upgrade always executes all sql statements for upgrading.
#--skip-write-binlog option disables binlog.
--
exec
$MYSQL_UPGRADE
--
skip
-
verbose
--
force
--
user
=
root
>
$MYSQLTEST_VARDIR
/
log
/
mysql_upgrade
.
log
2
>&
1
--
exec
$MYSQL_UPGRADE
--
skip
-
write
-
binlog
--
skip
-
verbose
--
force
--
user
=
root
>
$MYSQLTEST_VARDIR
/
log
/
mysql_upgrade
.
log
2
>&
1
sync_slave_with_master
;
sync_slave_with_master
;
connection
master
;
connection
master
;
...
@@ -42,7 +41,7 @@ source include/wait_for_slave_sql_to_stop.inc;
...
@@ -42,7 +41,7 @@ source include/wait_for_slave_sql_to_stop.inc;
connection
master
;
connection
master
;
#With '--force' option, mysql_upgrade always executes all sql statements for upgrading.
#With '--force' option, mysql_upgrade always executes all sql statements for upgrading.
--
exec
$MYSQL_UPGRADE
--
skip
-
verbose
--
force
--
user
=
root
>
$MYSQLTEST_VARDIR
/
log
/
mysql_upgrade
.
log
2
>&
1
--
exec
$MYSQL_UPGRADE
--
skip
-
verbose
--
write
-
binlog
--
force
--
user
=
root
>
$MYSQLTEST_VARDIR
/
log
/
mysql_upgrade
.
log
2
>&
1
connection
master
;
connection
master
;
let
$after_file
=
query_get_value
(
SHOW
MASTER
STATUS
,
File
,
1
);
let
$after_file
=
query_get_value
(
SHOW
MASTER
STATUS
,
File
,
1
);
...
...
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