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
4337aa74
Commit
4337aa74
authored
May 05, 2011
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MWL#180: Fix bug where setting @@global.binlog_checksum did not actually change the value.
parent
7a36035b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
mysql-test/suite/rpl/r/rpl_checksum.result
mysql-test/suite/rpl/r/rpl_checksum.result
+9
-0
mysql-test/suite/rpl/t/rpl_checksum.test
mysql-test/suite/rpl/t/rpl_checksum.test
+3
-0
sql/log.cc
sql/log.cc
+1
-1
No files found.
mysql-test/suite/rpl/r/rpl_checksum.result
View file @
4337aa74
...
...
@@ -27,13 +27,22 @@ show binary logs;
Log_name File_size
master-bin.000001 #
set @@global.binlog_checksum = NONE;
select @@global.binlog_checksum;
@@global.binlog_checksum
NONE
*** must be rotations seen ***
show binary logs;
Log_name File_size
master-bin.000001 #
master-bin.000002 #
set @@global.binlog_checksum = default;
select @@global.binlog_checksum;
@@global.binlog_checksum
NONE
set @@global.binlog_checksum = CRC32;
select @@global.binlog_checksum;
@@global.binlog_checksum
CRC32
set @@global.binlog_checksum = CRC32;
set @@global.master_verify_checksum = 0;
set @@global.master_verify_checksum = default;
...
...
mysql-test/suite/rpl/t/rpl_checksum.test
View file @
4337aa74
...
...
@@ -40,13 +40,16 @@ connection master;
source
include
/
show_binary_logs
.
inc
;
set
@@
global
.
binlog_checksum
=
NONE
;
select
@@
global
.
binlog_checksum
;
--
echo
***
must
be
rotations
seen
***
source
include
/
show_binary_logs
.
inc
;
set
@@
global
.
binlog_checksum
=
default
;
select
@@
global
.
binlog_checksum
;
# testing lack of side-effects in non-effective update of binlog_checksum:
set
@@
global
.
binlog_checksum
=
CRC32
;
select
@@
global
.
binlog_checksum
;
set
@@
global
.
binlog_checksum
=
CRC32
;
set
@@
global
.
master_verify_checksum
=
0
;
...
...
sql/log.cc
View file @
4337aa74
...
...
@@ -6994,7 +6994,7 @@ static void
binlog_checksum_update
(
MYSQL_THD
thd
,
struct
st_mysql_sys_var
*
var
,
void
*
var_ptr
,
const
void
*
save
)
{
ulong
value
=
*
((
ulong
*
)
var_ptr
);
ulong
value
=
*
((
ulong
*
)
save
);
pthread_mutex_lock
(
mysql_bin_log
.
get_log_lock
());
if
(
mysql_bin_log
.
is_open
())
...
...
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