From 3f619478f796eddbba6e39502fe941b285dd97b1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 20:00:34 +0200 Subject: Adding upstream version 1:10.11.6. Signed-off-by: Daniel Baumann --- mysql-test/suite/maria/group_commit.test | 72 ++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 mysql-test/suite/maria/group_commit.test (limited to 'mysql-test/suite/maria/group_commit.test') diff --git a/mysql-test/suite/maria/group_commit.test b/mysql-test/suite/maria/group_commit.test new file mode 100644 index 00000000..38b2c9d3 --- /dev/null +++ b/mysql-test/suite/maria/group_commit.test @@ -0,0 +1,72 @@ +# Test different ways of syncing (mostly syntax) +--source include/have_maria.inc + +--disable_warnings +drop table if exists t1; +--enable_warnings + +create table t1 (a int); + +SET GLOBAL aria_group_commit="NONE"; +SET GLOBAL aria_group_commit_interval= 0; +--disable_query_log +let $num = 5000; +while ($num) +{ + insert into t1 values (1); + dec $num; +} +--enable_query_log +SET GLOBAL aria_group_commit="NONE"; +SET GLOBAL aria_group_commit_interval= 100; +--disable_query_log +let $num = 5000; +while ($num) +{ + insert into t1 values (1); + dec $num; +} +--enable_query_log +SET GLOBAL aria_group_commit="HARD"; +SET GLOBAL aria_group_commit_interval= 0; +--disable_query_log +let $num = 5000; +while ($num) +{ + insert into t1 values (1); + dec $num; +} +--enable_query_log +SET GLOBAL aria_group_commit="HARD"; +SET GLOBAL aria_group_commit_interval= 100; +--disable_query_log +let $num = 5000; +while ($num) +{ + insert into t1 values (1); + dec $num; +} +--enable_query_log +SET GLOBAL aria_group_commit="SOFT"; +SET GLOBAL aria_group_commit_interval= 0; +--disable_query_log +let $num = 5000; +while ($num) +{ + insert into t1 values (1); + dec $num; +} +--enable_query_log +SET GLOBAL aria_group_commit="SOFT"; +SET GLOBAL aria_group_commit_interval= 100; +--disable_query_log +let $num = 5000; +while ($num) +{ + insert into t1 values (1); + dec $num; +} +--enable_query_log +SET GLOBAL aria_group_commit="NONE"; +SET GLOBAL aria_group_commit_interval= 0; +drop table t1; -- cgit v1.2.3