forked from MariaDB/server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mysql-test/suite/maria/r/group_commit.result: Test of gruoup commit. mysql-test/suite/maria/r/maria3.result: The new variables added. mysql-test/suite/maria/t/group_commit.test: Test of group commit. randgen: Randon query generator tests. randgen/conf: Random query generator tests. randgen/conf/maria_group_commit.yy: Random query generator test for group commit. storage/maria/ha_maria.cc: New variables and support procedures for group commit added. storage/maria/ma_init.c: Correct shutdown of group commit service thread and group commit. storage/maria/ma_loghandler.c: Group commit added. Initialization of variables for embeded server edded. storage/maria/ma_loghandler.h: Group commit types and routines.
- Loading branch information
unknown
committed
Feb 12, 2010
1 parent
b6d030e
commit abb8791
Showing
8 changed files
with
1,045 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
drop table if exists t1; | ||
create table t1 (a int); | ||
SET GLOBAL maria_group_commit="NONE"; | ||
SET GLOBAL maria_group_commit_interval= 0; | ||
SET GLOBAL maria_group_commit="NONE"; | ||
SET GLOBAL maria_group_commit_interval= 100; | ||
SET GLOBAL maria_group_commit="HARD"; | ||
SET GLOBAL maria_group_commit_interval= 0; | ||
SET GLOBAL maria_group_commit="HARD"; | ||
SET GLOBAL maria_group_commit_interval= 100; | ||
SET GLOBAL maria_group_commit="SOFT"; | ||
SET GLOBAL maria_group_commit_interval= 0; | ||
SET GLOBAL maria_group_commit="SOFT"; | ||
SET GLOBAL maria_group_commit_interval= 100; | ||
SET GLOBAL maria_group_commit="NONE"; | ||
SET GLOBAL maria_group_commit_interval= 0; | ||
drop table t1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# Test different ways of syncing (mostly syntax) | ||
|
||
--disable_warnings | ||
drop table if exists t1; | ||
--enable_warnings | ||
|
||
create table t1 (a int); | ||
|
||
SET GLOBAL maria_group_commit="NONE"; | ||
SET GLOBAL maria_group_commit_interval= 0; | ||
--disable_query_log | ||
let $num = 5000; | ||
while ($num) | ||
{ | ||
insert into t1 values (1); | ||
dec $num; | ||
} | ||
--enable_query_log | ||
SET GLOBAL maria_group_commit="NONE"; | ||
SET GLOBAL maria_group_commit_interval= 100; | ||
--disable_query_log | ||
let $num = 5000; | ||
while ($num) | ||
{ | ||
insert into t1 values (1); | ||
dec $num; | ||
} | ||
--enable_query_log | ||
SET GLOBAL maria_group_commit="HARD"; | ||
SET GLOBAL maria_group_commit_interval= 0; | ||
--disable_query_log | ||
let $num = 5000; | ||
while ($num) | ||
{ | ||
insert into t1 values (1); | ||
dec $num; | ||
} | ||
--enable_query_log | ||
SET GLOBAL maria_group_commit="HARD"; | ||
SET GLOBAL maria_group_commit_interval= 100; | ||
--disable_query_log | ||
let $num = 5000; | ||
while ($num) | ||
{ | ||
insert into t1 values (1); | ||
dec $num; | ||
} | ||
--enable_query_log | ||
SET GLOBAL maria_group_commit="SOFT"; | ||
SET GLOBAL maria_group_commit_interval= 0; | ||
--disable_query_log | ||
let $num = 5000; | ||
while ($num) | ||
{ | ||
insert into t1 values (1); | ||
dec $num; | ||
} | ||
--enable_query_log | ||
SET GLOBAL maria_group_commit="SOFT"; | ||
SET GLOBAL maria_group_commit_interval= 100; | ||
--disable_query_log | ||
let $num = 5000; | ||
while ($num) | ||
{ | ||
insert into t1 values (1); | ||
dec $num; | ||
} | ||
--enable_query_log | ||
SET GLOBAL maria_group_commit="NONE"; | ||
SET GLOBAL maria_group_commit_interval= 0; | ||
drop table t1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,181 @@ | ||
# test of group commit switching | ||
|
||
query: | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
select | insert | update| delete | | ||
change_group_commit | change_interval; | ||
|
||
|
||
select: | ||
SELECT select_item FROM join where order_by limit; | ||
|
||
select_item: | ||
* | X . _field ; | ||
|
||
join: | ||
_table AS X | | ||
_table AS X LEFT JOIN _table AS Y ON ( X . _field = Y . _field ) ; | ||
|
||
where: | ||
| | ||
WHERE X . _field < value | | ||
WHERE X . _field > value | | ||
WHERE X . _field = value ; | ||
|
||
where_delete: | ||
| | ||
WHERE _field < value | | ||
WHERE _field > value | | ||
WHERE _field = value ; | ||
|
||
order_by: | ||
| ORDER BY X . _field ; | ||
|
||
limit: | ||
| LIMIT _digit ; | ||
|
||
insert: | ||
INSERT INTO _table ( _field , _field ) VALUES ( value , value ) ; | ||
|
||
update: | ||
UPDATE _table AS X SET _field = value where order_by limit ; | ||
|
||
delete: | ||
DELETE FROM _table where_delete LIMIT _digit ; | ||
|
||
value: | ||
' _letter ' | _digit | _date | _datetime | _time | _english ; | ||
|
||
change_group_commit: | ||
SET GLOBAL MARIA_GROUP_COMMIT=none_soft_hard; | ||
|
||
none_soft_hard: | ||
NONE | SOFT | HARD; | ||
|
||
change_interval: | ||
set_interval | set_interval | set_interval | set_interval | | ||
drop_interval; | ||
|
||
set_interval: | ||
SET GLOBAL MARIA_GROUP_COMMIT_INTERVAL=_tinyint_unsigned; | ||
|
||
drop_interval: | ||
SET GLOBAL MARIA_GROUP_COMMIT_INTERVAL=0; |
Oops, something went wrong.