Commit 5e685cef authored by Rich Prohaska's avatar Rich Prohaska

refs #5725 remove the tokudb_enable_fast_update/upsert variable

git-svn-id: file:///svn/mysql/tests/mysql-test@52230 c7de825b-a66e-492c-adef-691d508d4ae1
parent 8a19b9bf
set default_storage_engine='tokudb'; set default_storage_engine='tokudb';
create table tt (id int primary key, x int); create table tt (id int primary key, x int);
set session tokudb_enable_fast_upsert=1;
set session tokudb_disable_slow_upsert=1; set session tokudb_disable_slow_upsert=1;
insert noar into tt values (1,0); insert noar into tt values (1,0);
insert noar into tt values (1,0) on duplicate key update x=x+1; insert noar into tt values (1,0) on duplicate key update x=x+1;
ERROR 42000: Table 'tt' uses an extension that doesn't exist in this XYZ version ERROR 42000: Table 'tt' uses an extension that doesn't exist in this XYZ version
insert noar into tt values (2,0) on duplicate key update x=x+1; insert noar into tt values (2,0) on duplicate key update x=x+1;
ERROR 42000: Table 'tt' uses an extension that doesn't exist in this XYZ version ERROR 42000: Table 'tt' uses an extension that doesn't exist in this XYZ version
set session tokudb_enable_fast_update=1;
set session tokudb_disable_slow_update=1; set session tokudb_disable_slow_update=1;
update noar tt set x=x+1 where id=1; update noar tt set x=x+1 where id=1;
ERROR 42000: Table 'tt' uses an extension that doesn't exist in this XYZ version ERROR 42000: Table 'tt' uses an extension that doesn't exist in this XYZ version
......
set default_storage_engine='tokudb'; set default_storage_engine='tokudb';
drop table if exists t; drop table if exists t;
create table t (id int primary key, b int, key(b)); create table t (id int primary key, b int, key(b));
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set b=b+1 where id=42; update noar t set b=b+1 where id=42;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
......
set default_storage_engine='tokudb'; set default_storage_engine='tokudb';
drop table if exists tt, ti; drop table if exists tt, ti;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
create table tt (id int primary key, c char(32), b binary(32)); create table tt (id int primary key, c char(32), b binary(32));
create table ti like tt; create table ti like tt;
......
set default_storage_engine='tokudb'; set default_storage_engine='tokudb';
drop table if exists tt; drop table if exists tt;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
create table tt (id int primary key, x int); create table tt (id int primary key, x int);
update noar tt set x=1 where id='abc'; update noar tt set x=1 where id='abc';
......
...@@ -10,7 +10,6 @@ id x ...@@ -10,7 +10,6 @@ id x
1 0 1 0
2 0 2 0
3 0 3 0
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -67,7 +66,6 @@ id x ...@@ -67,7 +66,6 @@ id x
1 0 1 0
2 0 2 0
3 0 3 0
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -124,7 +122,6 @@ id x ...@@ -124,7 +122,6 @@ id x
1 0 1 0
2 0 2 0
3 0 3 0
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -181,7 +178,6 @@ id x ...@@ -181,7 +178,6 @@ id x
1 0 1 0
2 0 2 0
3 0 3 0
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -238,7 +234,6 @@ id x ...@@ -238,7 +234,6 @@ id x
1 0 1 0
2 0 2 0
3 0 3 0
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -295,7 +290,6 @@ id x ...@@ -295,7 +290,6 @@ id x
1 0 1 0
2 0 2 0
3 0 3 0
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -352,7 +346,6 @@ id x ...@@ -352,7 +346,6 @@ id x
1 0 1 0
2 0 2 0
3 0 3 0
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -409,7 +402,6 @@ id x ...@@ -409,7 +402,6 @@ id x
1 0 1 0
2 0 2 0
3 0 3 0
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -466,7 +458,6 @@ id x ...@@ -466,7 +458,6 @@ id x
1 0 1 0
2 0 2 0
3 0 3 0
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -523,7 +514,6 @@ id x ...@@ -523,7 +514,6 @@ id x
1 0 1 0
2 0 2 0
3 0 3 0
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -580,7 +570,6 @@ id x ...@@ -580,7 +570,6 @@ id x
1 0 1 0
2 0 2 0
3 0 3 0
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -637,7 +626,6 @@ id x ...@@ -637,7 +626,6 @@ id x
1 0 1 0
2 0 2 0
3 0 3 0
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -694,7 +682,6 @@ id x ...@@ -694,7 +682,6 @@ id x
1 0 1 0
2 0 2 0
3 0 3 0
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -751,7 +738,6 @@ id x ...@@ -751,7 +738,6 @@ id x
1 0 1 0
2 0 2 0
3 0 3 0
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -808,7 +794,6 @@ id x ...@@ -808,7 +794,6 @@ id x
1 0 1 0
2 0 2 0
3 0 3 0
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -865,7 +850,6 @@ id x ...@@ -865,7 +850,6 @@ id x
1 0 1 0
2 0 2 0
3 0 3 0
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -922,7 +906,6 @@ id x ...@@ -922,7 +906,6 @@ id x
1 0 1 0
2 0 2 0
3 0 3 0
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -979,7 +962,6 @@ id x ...@@ -979,7 +962,6 @@ id x
1 0 1 0
2 0 2 0
3 0 3 0
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -1036,7 +1018,6 @@ id x ...@@ -1036,7 +1018,6 @@ id x
1 0 1 0
2 0 2 0
3 0 3 0
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -1093,7 +1074,6 @@ id x ...@@ -1093,7 +1074,6 @@ id x
1 0 1 0
2 0 2 0
3 0 3 0
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
......
...@@ -5,7 +5,6 @@ insert into tt values (1,0),(2,-pow(2,31)),(3,pow(2,31)-1); ...@@ -5,7 +5,6 @@ insert into tt values (1,0),(2,-pow(2,31)),(3,pow(2,31)-1);
create table ti like tt; create table ti like tt;
alter table ti engine=innodb; alter table ti engine=innodb;
insert into ti select * from tt; insert into ti select * from tt;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar tt set x=x+1 where id=1; update noar tt set x=x+1 where id=1;
update noar ti set x=x+1 where id=1; update noar ti set x=x+1 where id=1;
......
set default_storage_engine='tokudb'; set default_storage_engine='tokudb';
drop table if exists t; drop table if exists t;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
create table t (id int primary key, x int not null); create table t (id int primary key, x int not null);
insert into t values (1,0); insert into t values (1,0);
......
...@@ -5,7 +5,6 @@ insert into tt values (1,0),(2,pow(2,32)-1); ...@@ -5,7 +5,6 @@ insert into tt values (1,0),(2,pow(2,32)-1);
create table ti like tt; create table ti like tt;
alter table ti engine=innodb; alter table ti engine=innodb;
insert into ti select * from tt; insert into ti select * from tt;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar tt set x=x+1 where id=1; update noar tt set x=x+1 where id=1;
update noar ti set x=x+1 where id=1; update noar ti set x=x+1 where id=1;
......
...@@ -2,10 +2,8 @@ drop table if exists t; ...@@ -2,10 +2,8 @@ drop table if exists t;
set default_storage_engine='tokudb'; set default_storage_engine='tokudb';
create table t (id bigint primary key, b bigint not null default 0); create table t (id bigint primary key, b bigint not null default 0);
insert into t (id) values (1),(2); insert into t (id) values (1),(2);
set session tokudb_enable_fast_update=1;
begin; begin;
update noar t set b=b+1 where id=1; update noar t set b=b+1 where id=1;
set session tokudb_enable_fast_update=1;
begin; begin;
update noar t set b=b-1 where id=2; update noar t set b=b-1 where id=2;
update noar t set b=b+1 where id=2; update noar t set b=b+1 where id=2;
......
set default_storage_engine='tokudb'; set default_storage_engine='tokudb';
drop table if exists t; drop table if exists t;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
create table tt ( create table tt (
id tinyint null primary key, id tinyint null primary key,
......
set default_storage_engine='tokudb'; set default_storage_engine='tokudb';
drop table if exists t; drop table if exists t;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
create table t (ida int not null, idb bigint not null, idc tinyint unsigned not null, x bigint); create table t (ida int not null, idb bigint not null, idc tinyint unsigned not null, x bigint);
update noar t set x=x+1 where ida=1; update noar t set x=x+1 where ida=1;
......
set default_storage_engine='tokudb'; set default_storage_engine='tokudb';
drop table if exists tt, ti; drop table if exists tt, ti;
set tokudb_enable_fast_upsert=1;
set tokudb_disable_slow_upsert=1; set tokudb_disable_slow_upsert=1;
create table tt (id int primary key, c char(32), b binary(32)); create table tt (id int primary key, c char(32), b binary(32));
create table ti like tt; create table ti like tt;
......
drop table if exists t; drop table if exists t;
set default_storage_engine='tokudb'; set default_storage_engine='tokudb';
create table t (id bigint primary key, b bigint not null default 0); create table t (id bigint primary key, b bigint not null default 0);
set session tokudb_enable_fast_upsert=1;
begin; begin;
insert noar into t (id) values (1) on duplicate key update b=b+1; insert noar into t (id) values (1) on duplicate key update b=b+1;
set session tokudb_enable_fast_upsert=1;
begin; begin;
insert noar into t (id) values (2) on duplicate key update b=b-1; insert noar into t (id) values (2) on duplicate key update b=b-1;
insert noar into t (id) values (2) on duplicate key update b=b+1; insert noar into t (id) values (2) on duplicate key update b=b+1;
......
set default_storage_engine='tokudb'; set default_storage_engine='tokudb';
drop table if exists tt, ti; drop table if exists tt, ti;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
create table tt ( create table tt (
id tinyint null primary key, id tinyint null primary key,
......
set default_storage_engine='tokudb'; set default_storage_engine='tokudb';
drop table if exists t; drop table if exists t;
set tokudb_enable_fast_upsert=1;
set tokudb_disable_slow_upsert=1; set tokudb_disable_slow_upsert=1;
create table t (a int, b char(32), c varchar(32), d blob); create table t (a int, b char(32), c varchar(32), d blob);
insert noar into t values (1,null,null,null) on duplicate key update a=42; insert noar into t values (1,null,null,null) on duplicate key update a=42;
......
set default_storage_engine='tokudb'; set default_storage_engine='tokudb';
drop table if exists t; drop table if exists t;
set tokudb_enable_fast_upsert=1;
set tokudb_disable_slow_upsert=1; set tokudb_disable_slow_upsert=1;
create table t (id int primary key, x int not null); create table t (id int primary key, x int not null);
insert noar into t values (1,0); insert noar into t values (1,0);
......
source include/master-slave.inc;
source include/have_binlog_format_mixed.inc; source include/have_binlog_format_mixed.inc;
source include/have_tokudb.inc; source include/have_tokudb.inc;
set default_storage_engine='tokudb'; set default_storage_engine='tokudb';
create table tt (id int primary key, x int); create table tt (id int primary key, x int);
set session tokudb_enable_fast_upsert=1;
set session tokudb_disable_slow_upsert=1; set session tokudb_disable_slow_upsert=1;
insert noar into tt values (1,0); connection master;
show variables like 'binlog_format';
show variables like 'server_id';
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/; connection slave;
error ER_UNSUPPORTED_EXTENSION; show variables like 'binlog_format';
insert noar into tt values (1,0) on duplicate key update x=x+1; show variables like 'server_id';
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/; connection master;
error ER_UNSUPPORTED_EXTENSION;
insert noar into tt values (2,0) on duplicate key update x=x+1;
set session tokudb_enable_fast_update=1; let $n=100;
set session tokudb_disable_slow_update=1;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/; # insert a bunch of new rows
error ER_UNSUPPORTED_EXTENSION; let $i=0;
update noar tt set x=x+1 where id=1; while ($i < $n) {
eval insert into tt values ($i,0) on duplicate key update x=x+1;
inc $i;
}
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/; # upsert a bunch of rows
error ER_UNSUPPORTED_EXTENSION; let $i=0;
update noar tt set x=x+1 where id=2; while ($i < $n) {
eval insert into tt values ($i,0) on duplicate key update x=x+1;
inc $i;
}
# update a bunch of rows
let $i=0;
while ($i < $n) {
eval update noar tt set x=x+1 where id=$i;
inc $i;
}
select * from tt where x != 2;
sync_slave_with_master;
let $diff_tables= master:test.tt, slave:test.tt;
source include/diff_tables.inc;
connection master;
drop table tt; drop table tt;
source include/rpl_end.inc;
...@@ -4,7 +4,6 @@ source include/have_tokudb.inc; ...@@ -4,7 +4,6 @@ source include/have_tokudb.inc;
set default_storage_engine='tokudb'; set default_storage_engine='tokudb';
create table tt (id int primary key, x int); create table tt (id int primary key, x int);
set session tokudb_enable_fast_upsert=1;
set session tokudb_disable_slow_upsert=1; set session tokudb_disable_slow_upsert=1;
insert noar into tt values (1,0); insert noar into tt values (1,0);
...@@ -17,7 +16,6 @@ replace_regex /MariaDB/XYZ/ /MySQL/XYZ/; ...@@ -17,7 +16,6 @@ replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION; error ER_UNSUPPORTED_EXTENSION;
insert noar into tt values (2,0) on duplicate key update x=x+1; insert noar into tt values (2,0) on duplicate key update x=x+1;
set session tokudb_enable_fast_update=1;
set session tokudb_disable_slow_update=1; set session tokudb_disable_slow_update=1;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/; replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
......
source include/master-slave.inc;
source include/have_binlog_format_statement.inc; source include/have_binlog_format_statement.inc;
source include/have_tokudb.inc; source include/have_tokudb.inc;
set default_storage_engine='tokudb'; set default_storage_engine='tokudb';
create table tt (id int primary key, x int); create table tt (id int primary key, x int);
set session tokudb_enable_fast_upsert=1;
set session tokudb_disable_slow_upsert=1; set session tokudb_disable_slow_upsert=1;
insert noar into tt values (1,0); connection master;
show variables like 'binlog_format';
show variables like 'server_id';
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/; connection slave;
error ER_UNSUPPORTED_EXTENSION; show variables like 'binlog_format';
insert noar into tt values (1,0) on duplicate key update x=x+1; show variables like 'server_id';
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/; connection master;
error ER_UNSUPPORTED_EXTENSION;
insert noar into tt values (2,0) on duplicate key update x=x+1;
set session tokudb_enable_fast_update=1; let $n=100;
set session tokudb_disable_slow_update=1;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/; # insert a bunch of new rows
error ER_UNSUPPORTED_EXTENSION; let $i=0;
update noar tt set x=x+1 where id=1; while ($i < $n) {
eval insert into tt values ($i,0) on duplicate key update x=x+1;
inc $i;
}
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/; # upsert a bunch of rows
error ER_UNSUPPORTED_EXTENSION; let $i=0;
update noar tt set x=x+1 where id=2; while ($i < $n) {
eval insert into tt values ($i,0) on duplicate key update x=x+1;
inc $i;
}
# update a bunch of rows
let $i=0;
while ($i < $n) {
eval update noar tt set x=x+1 where id=$i;
inc $i;
}
select * from tt where x != 2;
sync_slave_with_master;
let $diff_tables= master:test.tt, slave:test.tt;
source include/diff_tables.inc;
connection master;
drop table tt; drop table tt;
source include/rpl_end.inc;
...@@ -8,7 +8,6 @@ drop table if exists t; ...@@ -8,7 +8,6 @@ drop table if exists t;
create table t (id int primary key, b int, key(b)); create table t (id int primary key, b int, key(b));
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/; replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
......
...@@ -10,7 +10,6 @@ disable_warnings; ...@@ -10,7 +10,6 @@ disable_warnings;
drop table if exists tt, ti; drop table if exists tt, ti;
enable_warnings; enable_warnings;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
create table tt (id int primary key, c char(32), b binary(32)); create table tt (id int primary key, c char(32), b binary(32));
......
...@@ -9,7 +9,6 @@ disable_warnings; ...@@ -9,7 +9,6 @@ disable_warnings;
drop table if exists tt; drop table if exists tt;
enable_warnings; enable_warnings;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
create table tt (id int primary key, x int); create table tt (id int primary key, x int);
......
...@@ -26,7 +26,6 @@ def test_int(t, u, n): ...@@ -26,7 +26,6 @@ def test_int(t, u, n):
print "insert into t values (1,0),(2,0),(3,0);" print "insert into t values (1,0),(2,0),(3,0);"
print "select * from t;" print "select * from t;"
print "set tokudb_enable_fast_update=1;"
print "set tokudb_disable_slow_update=1;" print "set tokudb_disable_slow_update=1;"
# set is fast # set is fast
......
...@@ -11,7 +11,6 @@ create table t ( ...@@ -11,7 +11,6 @@ create table t (
); );
insert into t values (1,0),(2,0),(3,0); insert into t values (1,0),(2,0),(3,0);
select * from t; select * from t;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -44,7 +43,6 @@ create table t ( ...@@ -44,7 +43,6 @@ create table t (
); );
insert into t values (1,0),(2,0),(3,0); insert into t values (1,0),(2,0),(3,0);
select * from t; select * from t;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -77,7 +75,6 @@ create table t ( ...@@ -77,7 +75,6 @@ create table t (
); );
insert into t values (1,0),(2,0),(3,0); insert into t values (1,0),(2,0),(3,0);
select * from t; select * from t;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -110,7 +107,6 @@ create table t ( ...@@ -110,7 +107,6 @@ create table t (
); );
insert into t values (1,0),(2,0),(3,0); insert into t values (1,0),(2,0),(3,0);
select * from t; select * from t;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -143,7 +139,6 @@ create table t ( ...@@ -143,7 +139,6 @@ create table t (
); );
insert into t values (1,0),(2,0),(3,0); insert into t values (1,0),(2,0),(3,0);
select * from t; select * from t;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -176,7 +171,6 @@ create table t ( ...@@ -176,7 +171,6 @@ create table t (
); );
insert into t values (1,0),(2,0),(3,0); insert into t values (1,0),(2,0),(3,0);
select * from t; select * from t;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -209,7 +203,6 @@ create table t ( ...@@ -209,7 +203,6 @@ create table t (
); );
insert into t values (1,0),(2,0),(3,0); insert into t values (1,0),(2,0),(3,0);
select * from t; select * from t;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -242,7 +235,6 @@ create table t ( ...@@ -242,7 +235,6 @@ create table t (
); );
insert into t values (1,0),(2,0),(3,0); insert into t values (1,0),(2,0),(3,0);
select * from t; select * from t;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -275,7 +267,6 @@ create table t ( ...@@ -275,7 +267,6 @@ create table t (
); );
insert into t values (1,0),(2,0),(3,0); insert into t values (1,0),(2,0),(3,0);
select * from t; select * from t;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -308,7 +299,6 @@ create table t ( ...@@ -308,7 +299,6 @@ create table t (
); );
insert into t values (1,0),(2,0),(3,0); insert into t values (1,0),(2,0),(3,0);
select * from t; select * from t;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -341,7 +331,6 @@ create table t ( ...@@ -341,7 +331,6 @@ create table t (
); );
insert into t values (1,0),(2,0),(3,0); insert into t values (1,0),(2,0),(3,0);
select * from t; select * from t;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -374,7 +363,6 @@ create table t ( ...@@ -374,7 +363,6 @@ create table t (
); );
insert into t values (1,0),(2,0),(3,0); insert into t values (1,0),(2,0),(3,0);
select * from t; select * from t;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -407,7 +395,6 @@ create table t ( ...@@ -407,7 +395,6 @@ create table t (
); );
insert into t values (1,0),(2,0),(3,0); insert into t values (1,0),(2,0),(3,0);
select * from t; select * from t;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -440,7 +427,6 @@ create table t ( ...@@ -440,7 +427,6 @@ create table t (
); );
insert into t values (1,0),(2,0),(3,0); insert into t values (1,0),(2,0),(3,0);
select * from t; select * from t;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -473,7 +459,6 @@ create table t ( ...@@ -473,7 +459,6 @@ create table t (
); );
insert into t values (1,0),(2,0),(3,0); insert into t values (1,0),(2,0),(3,0);
select * from t; select * from t;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -506,7 +491,6 @@ create table t ( ...@@ -506,7 +491,6 @@ create table t (
); );
insert into t values (1,0),(2,0),(3,0); insert into t values (1,0),(2,0),(3,0);
select * from t; select * from t;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -539,7 +523,6 @@ create table t ( ...@@ -539,7 +523,6 @@ create table t (
); );
insert into t values (1,0),(2,0),(3,0); insert into t values (1,0),(2,0),(3,0);
select * from t; select * from t;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -572,7 +555,6 @@ create table t ( ...@@ -572,7 +555,6 @@ create table t (
); );
insert into t values (1,0),(2,0),(3,0); insert into t values (1,0),(2,0),(3,0);
select * from t; select * from t;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -605,7 +587,6 @@ create table t ( ...@@ -605,7 +587,6 @@ create table t (
); );
insert into t values (1,0),(2,0),(3,0); insert into t values (1,0),(2,0),(3,0);
select * from t; select * from t;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
...@@ -638,7 +619,6 @@ create table t ( ...@@ -638,7 +619,6 @@ create table t (
); );
insert into t values (1,0),(2,0),(3,0); insert into t values (1,0),(2,0),(3,0);
select * from t; select * from t;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2; update noar t set x=100 where id=2;
select * from t; select * from t;
......
...@@ -13,7 +13,6 @@ create table ti like tt; ...@@ -13,7 +13,6 @@ create table ti like tt;
alter table ti engine=innodb; alter table ti engine=innodb;
insert into ti select * from tt; insert into ti select * from tt;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar tt set x=x+1 where id=1; update noar tt set x=x+1 where id=1;
......
...@@ -6,7 +6,6 @@ disable_warnings; ...@@ -6,7 +6,6 @@ disable_warnings;
drop table if exists t; drop table if exists t;
enable_warnings; enable_warnings;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
let $default_sql_mode = `select @@session.sql_mode`; let $default_sql_mode = `select @@session.sql_mode`;
......
...@@ -13,7 +13,6 @@ create table ti like tt; ...@@ -13,7 +13,6 @@ create table ti like tt;
alter table ti engine=innodb; alter table ti engine=innodb;
insert into ti select * from tt; insert into ti select * from tt;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
update noar tt set x=x+1 where id=1; update noar tt set x=x+1 where id=1;
......
...@@ -12,12 +12,10 @@ insert into t (id) values (1),(2); ...@@ -12,12 +12,10 @@ insert into t (id) values (1),(2);
connect (conn1,localhost,root,,); connect (conn1,localhost,root,,);
connection default; connection default;
set session tokudb_enable_fast_update=1;
begin; begin;
update noar t set b=b+1 where id=1; update noar t set b=b+1 where id=1;
connection conn1; connection conn1;
set session tokudb_enable_fast_update=1;
begin; begin;
update noar t set b=b-1 where id=2; update noar t set b=b-1 where id=2;
......
...@@ -11,7 +11,6 @@ def main(): ...@@ -11,7 +11,6 @@ def main():
print "drop table if exists t;" print "drop table if exists t;"
print "enable_warnings;" print "enable_warnings;"
print "set tokudb_enable_fast_update=1;"
print "set tokudb_disable_slow_update=1;" print "set tokudb_disable_slow_update=1;"
for t in [ 'tinyint', 'smallint', 'mediumint', 'int', 'bigint' ]: for t in [ 'tinyint', 'smallint', 'mediumint', 'int', 'bigint' ]:
......
...@@ -5,7 +5,6 @@ set default_storage_engine='tokudb'; ...@@ -5,7 +5,6 @@ set default_storage_engine='tokudb';
disable_warnings; disable_warnings;
drop table if exists t; drop table if exists t;
enable_warnings; enable_warnings;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
create table tt ( create table tt (
id tinyint null primary key, id tinyint null primary key,
......
...@@ -6,7 +6,6 @@ disable_warnings; ...@@ -6,7 +6,6 @@ disable_warnings;
drop table if exists t; drop table if exists t;
enable_warnings; enable_warnings;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
# must have primary key # must have primary key
......
...@@ -6,7 +6,6 @@ disable_warnings; ...@@ -6,7 +6,6 @@ disable_warnings;
drop table if exists t0, t1; drop table if exists t0, t1;
enable_warnings; enable_warnings;
set tokudb_enable_fast_upsert=1;
set tokudb_disable_slow_upsert=1; set tokudb_disable_slow_upsert=1;
create table t0 (id int primary key, b binary(32)); create table t0 (id int primary key, b binary(32));
......
...@@ -7,7 +7,6 @@ disable_warnings; ...@@ -7,7 +7,6 @@ disable_warnings;
drop table if exists tt, ti; drop table if exists tt, ti;
enable_warnings; enable_warnings;
set tokudb_enable_fast_upsert=1;
set tokudb_disable_slow_upsert=1; set tokudb_disable_slow_upsert=1;
create table tt (id int primary key, c char(32), b binary(32)); create table tt (id int primary key, c char(32), b binary(32));
......
...@@ -11,12 +11,10 @@ create table t (id bigint primary key, b bigint not null default 0); ...@@ -11,12 +11,10 @@ create table t (id bigint primary key, b bigint not null default 0);
connect (conn1,localhost,root,,); connect (conn1,localhost,root,,);
connection default; connection default;
set session tokudb_enable_fast_upsert=1;
begin; begin;
insert noar into t (id) values (1) on duplicate key update b=b+1; insert noar into t (id) values (1) on duplicate key update b=b+1;
connection conn1; connection conn1;
set session tokudb_enable_fast_upsert=1;
begin; begin;
insert noar into t (id) values (2) on duplicate key update b=b-1; insert noar into t (id) values (2) on duplicate key update b=b-1;
......
...@@ -11,7 +11,6 @@ def main(): ...@@ -11,7 +11,6 @@ def main():
print "drop table if exists tt, ti;" print "drop table if exists tt, ti;"
print "enable_warnings;" print "enable_warnings;"
print "set tokudb_enable_fast_update=1;"
print "set tokudb_disable_slow_update=1;" print "set tokudb_disable_slow_update=1;"
for t in [ 'tinyint', 'smallint', 'mediumint', 'int', 'bigint' ]: for t in [ 'tinyint', 'smallint', 'mediumint', 'int', 'bigint' ]:
......
...@@ -5,7 +5,6 @@ set default_storage_engine='tokudb'; ...@@ -5,7 +5,6 @@ set default_storage_engine='tokudb';
disable_warnings; disable_warnings;
drop table if exists tt, ti; drop table if exists tt, ti;
enable_warnings; enable_warnings;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1; set tokudb_disable_slow_update=1;
create table tt ( create table tt (
id tinyint null primary key, id tinyint null primary key,
......
...@@ -6,7 +6,6 @@ disable_warnings; ...@@ -6,7 +6,6 @@ disable_warnings;
drop table if exists t; drop table if exists t;
enable_warnings; enable_warnings;
set tokudb_enable_fast_upsert=1;
set tokudb_disable_slow_upsert=1; set tokudb_disable_slow_upsert=1;
# must have primary key # must have primary key
......
...@@ -6,7 +6,6 @@ disable_warnings; ...@@ -6,7 +6,6 @@ disable_warnings;
drop table if exists t; drop table if exists t;
enable_warnings; enable_warnings;
set tokudb_enable_fast_upsert=1;
set tokudb_disable_slow_upsert=1; set tokudb_disable_slow_upsert=1;
let $default_sql_mode = `select @@session.sql_mode`; let $default_sql_mode = `select @@session.sql_mode`;
......
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