Merge lp:~gl-az/percona-server/bug1287650-5.6 into lp:percona-server/5.6
Status: | Merged |
---|---|
Approved by: | Alexey Kopytov |
Approved revision: | no longer in the source branch. |
Merged at revision: | 579 |
Proposed branch: | lp:~gl-az/percona-server/bug1287650-5.6 |
Merge into: | lp:percona-server/5.6 |
Diff against target: |
255 lines (+74/-6) 12 files modified
mysql-test/r/percona_slow_query_log_always_write.result (+3/-0) mysql-test/r/percona_slow_query_log_rate.result (+3/-0) mysql-test/r/percona_slow_query_log_rate_limit_write.result (+3/-0) mysql-test/suite/sys_vars/r/log_slow_rate_limit_basic.result (+27/-3) mysql-test/suite/sys_vars/t/log_slow_rate_limit_basic.test (+11/-1) mysql-test/t/percona_slow_query_log_always_write.test (+5/-0) mysql-test/t/percona_slow_query_log_rate.test (+10/-0) mysql-test/t/percona_slow_query_log_rate_limit_write.test (+5/-0) sql/sql_class.cc (+3/-0) sql/sql_class.h (+2/-0) sql/sql_parse.cc (+1/-1) sql/sys_vars.cc (+1/-1) |
To merge this branch: | bzr merge lp:~gl-az/percona-server/bug1287650-5.6 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alexey Kopytov (community) | Approve | ||
Laurynas Biveinis | Pending | ||
Review via email: mp+209548@code.launchpad.net |
Description of the change
bug 1290714 - Maximum allowed value for log_slow_rate_limit is unreasonably high
As suggested by Alexey, set the upper bound of the log_slow_rate_limit to
1000.
Modified sys_vars/
bug 1287650 - Change log_slow_
A simple change was made to allow selection of query to be logged to be random rather than exactly every nth query. This is achieved by addind a new
rand_struct to 'class THD'. This has some ramifications for mtr cases in that the actual queries logged and number of queries logged will be pseudo random and only deterministic as long as the random sequence remains constant. To address this, a DBUG_EXECUTE_IF was added to the THD initialization to seed the new rand_struct with some constants rather than environmental/
MAde fixes ad new jenkins: http:// jenkins. percona. com/view/ PS%205. 6/job/percona- server- 5.6-param/ 541/