Commit 00e3869a authored by Sergei Petrunia's avatar Sergei Petrunia

MariaRocks port: get rocksdb.checksum_table to work

MariaDB has a different checksumming algorithm. Old one
can be used by setting @@old=1
parent 8018bb73
......@@ -66,6 +66,10 @@ col1 varchar(10),
col2 tinyint,
col3 double
) engine=rocksdb;
# MariaDB has changed the checksumming algorithm
# Enable the old algorithm:
set @tmp_old=@@old;
set old=1;
checksum table t1;
Table Checksum
test.t1 0
......@@ -84,4 +88,5 @@ insert into t1 values (6, '', NULL, 2.78);
checksum table t1;
Table Checksum
test.t1 3183101003
set old=@tmp_old;
drop table t1;
......@@ -58,6 +58,12 @@ create table t1 (
col3 double
) engine=rocksdb;
--echo # MariaDB has changed the checksumming algorithm
--echo # Enable the old algorithm:
set @tmp_old=@@old;
set old=1;
checksum table t1;
insert into t1 values (1, NULL, NULL, NULL);
......@@ -72,5 +78,7 @@ insert into t1 values (5, 'xxxYYYzzzT', NULL, 2.78);
insert into t1 values (6, '', NULL, 2.78);
checksum table t1;
set old=@tmp_old;
drop table t1;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment