| 1 |
--source include/not_embedded.inc |
| 2 |
|
| 3 |
# suite/rpl/t/rpl_checksum.test contains similar testing of |
| 4 |
# all checksum related system variables. |
| 5 |
|
| 6 |
set @save_binlog_checksum= @@global.binlog_checksum; |
| 7 |
set @@global.binlog_checksum = default; |
| 8 |
|
| 9 |
select @@global.binlog_checksum as 'must be CRC32 by default'; |
| 10 |
--error ER_INCORRECT_GLOBAL_LOCAL_VAR |
| 11 |
select @@session.binlog_checksum as 'no session var'; |
| 12 |
|
| 13 |
|
| 14 |
# testing lack of side-effects in non-effective update of binlog_checksum: |
| 15 |
set @@global.binlog_checksum = CRC32; |
| 16 |
set @@global.binlog_checksum = CRC32; |
| 17 |
|
| 18 |
set @@global.master_verify_checksum = 0; |
| 19 |
set @@global.master_verify_checksum = default; |
| 20 |
|
| 21 |
--error ER_WRONG_VALUE_FOR_VAR |
| 22 |
set @@global.binlog_checksum = ADLER32; |
| 23 |
|
| 24 |
# cleanup |
| 25 |
set @@global.binlog_checksum = @save_binlog_checksum; |