Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
26 changed files
with
649 additions
and
23 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
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
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
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
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,31 @@ | ||
| # This file runs the query and checks | ||
| # whether the size of binlog is increased or not | ||
| # If size is changed it issue die command | ||
| # Parameters | ||
| # $sql_query = query to run | ||
|
|
||
| #Only last row of show binlog events matter | ||
| --let $tmp= 0 | ||
| --let $counter= 1 | ||
| while ($tmp != "No such row") | ||
| { | ||
| --let $initial_binlog_size= $tmp | ||
| --let $tmp= query_get_value(show binary logs, File_size, $counter) | ||
| --inc $counter | ||
| } | ||
|
|
||
| --eval $sql_query | ||
|
|
||
| --let $tmp= 0 | ||
| --let $counter= 1 | ||
| while ($tmp != "No such row") | ||
| { | ||
| --let $current_binlog_size= $tmp | ||
| --let $tmp= query_get_value(show binary logs, File_size, $counter) | ||
| --inc $counter | ||
| } | ||
|
|
||
| if ($initial_binlog_size != $current_binlog_size) | ||
| { | ||
| die "Binlog size changed"; | ||
| } |
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,7 @@ | ||
| RESET MASTER; | ||
| #Create table test | ||
| create temporary table t1(a int, b int); | ||
| #Add index test | ||
| create index index_a on t1(a); | ||
| #drop index test | ||
| drop index index_a on t1; |
Oops, something went wrong.