mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
[t:4561], add automated test
git-svn-id: file:///svn/mysql/tests/mysql-test@40234 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
f1f5ec5d52
commit
3ce0dd83c5
2 changed files with 39 additions and 0 deletions
14
mysql-test/suite/tokudb.bugs/r/memcache_dirty.result
Normal file
14
mysql-test/suite/tokudb.bugs/r/memcache_dirty.result
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
SET STORAGE_ENGINE = 'tokudb';
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
create table t1 (i int, j int, primary key (i))engine=TokuDB;
|
||||||
|
insert into t1 values (0,0) MEMCACHE_DIRTY 'a';
|
||||||
|
insert into t1 values (1,0) MEMCACHE_DIRTY 'b', 'c';
|
||||||
|
update t1 set j=j+1 where i=0 MEMCACHE_DIRTY 'a';
|
||||||
|
update t1 set j=j+1 where i=1 MEMCACHE_DIRTY 'b', 'c';
|
||||||
|
insert into t1 values (0,0) on duplicate key update j=j+1 MEMCACHE_DIRTY 'a';
|
||||||
|
insert into t1 values (2,0) on duplicate key update j=j+1 MEMCACHE_DIRTY 'a', 'b';
|
||||||
|
replace into t1 values (0,3) MEMCACHE_DIRTY 'a';
|
||||||
|
replace into t1 values (3,3) MEMCACHE_DIRTY 'a', 'b';
|
||||||
|
delete from t1 where i=0 MEMCACHE_DIRTY 'a';
|
||||||
|
delete from t1 where i=1 MEMCACHE_DIRTY 'b', 'c';
|
||||||
|
DROP TABLE t1;
|
25
mysql-test/suite/tokudb.bugs/t/memcache_dirty.test
Normal file
25
mysql-test/suite/tokudb.bugs/t/memcache_dirty.test
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
--source include/have_tokudb.inc
|
||||||
|
#
|
||||||
|
# Record inconsistency.
|
||||||
|
#
|
||||||
|
#
|
||||||
|
SET STORAGE_ENGINE = 'tokudb';
|
||||||
|
|
||||||
|
--disable_warnings
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
--enable_warnings
|
||||||
|
create table t1 (i int, j int, primary key (i))engine=TokuDB;
|
||||||
|
insert into t1 values (0,0) MEMCACHE_DIRTY 'a'; insert into t1 values (1,0) MEMCACHE_DIRTY 'b', 'c';
|
||||||
|
|
||||||
|
update t1 set j=j+1 where i=0 MEMCACHE_DIRTY 'a'; update t1 set j=j+1 where i=1 MEMCACHE_DIRTY 'b', 'c';
|
||||||
|
|
||||||
|
insert into t1 values (0,0) on duplicate key update j=j+1 MEMCACHE_DIRTY 'a'; insert into t1 values (2,0) on duplicate key update j=j+1 MEMCACHE_DIRTY 'a', 'b';
|
||||||
|
|
||||||
|
replace into t1 values (0,3) MEMCACHE_DIRTY 'a'; replace into t1 values (3,3) MEMCACHE_DIRTY 'a', 'b';
|
||||||
|
|
||||||
|
delete from t1 where i=0 MEMCACHE_DIRTY 'a'; delete from t1 where i=1 MEMCACHE_DIRTY 'b', 'c';
|
||||||
|
|
||||||
|
|
||||||
|
# Final cleanup.
|
||||||
|
DROP TABLE t1;
|
||||||
|
|
Loading…
Reference in a new issue