Merge lp:~percona-dev/percona-patches/5.0.77-fix-bug375494 into lp:~percona-dev/percona-patches/5.0.77

Proposed by Yasufumi Kinoshita
Status: Merged
Merged at revision: not available
Proposed branch: lp:~percona-dev/percona-patches/5.0.77-fix-bug375494
Merge into: lp:~percona-dev/percona-patches/5.0.77
Diff against target: None lines
To merge this branch: bzr merge lp:~percona-dev/percona-patches/5.0.77-fix-bug375494
Reviewer Review Type Date Requested Status
Vadim Tkachenko Approve
Review via email: mp+6803@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Vadim Tkachenko (vadim-tk) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'microslow_innodb.patch'
2--- microslow_innodb.patch 2009-05-20 06:04:48 +0000
3+++ microslow_innodb.patch 2009-05-27 01:07:17 +0000
4@@ -2330,14 +2330,14 @@
5 + limit, if one of them takes long enough (>= 1 second) it will be sensible
6 + to make an exception and write to slow log anyway.
7 + */
8++
9 + if (opt_use_global_long_query_time)
10 + thd->variables.long_query_time = global_system_variables.long_query_time;
11-+ if (thd->write_to_slow_log != TRUE && thd->variables.long_query_time < 1000000 &&
12-+ (ulong) (thd->start_timer - thd->timer_after_lock) >= 1000000)
13-+ thd->write_to_slow_log= TRUE;
14 +
15 + /* Do not log this thread's queries due to rate limiting. */
16-+ if (thd->write_to_slow_log != TRUE)
17++ if (thd->write_to_slow_log != TRUE
18++ && (thd->variables.long_query_time >= 1000000
19++ || (ulong) (thd->start_timer - thd->timer_after_lock) < 1000000))
20 + return;
21
22 /*

Subscribers

People subscribed via source and target branches

to all changes: