Merge lp:~percona-dev/percona-patches/5.0.82-bug-382778 into lp:~percona-dev/percona-patches/5.0.82

Proposed by Yasufumi Kinoshita
Status: Merged
Merged at revision: not available
Proposed branch: lp:~percona-dev/percona-patches/5.0.82-bug-382778
Merge into: lp:~percona-dev/percona-patches/5.0.82
Diff against target: None lines
To merge this branch: bzr merge lp:~percona-dev/percona-patches/5.0.82-bug-382778
Reviewer Review Type Date Requested Status
Percona developers Pending
Review via email: mp+7093@code.launchpad.net
To post a comment you must log in.

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-06-01 07:37:47 +0000
3+++ microslow_innodb.patch 2009-06-05 05:44:30 +0000
4@@ -6,7 +6,7 @@
5 #define GET_STR 9
6 #define GET_STR_ALLOC 10
7 -#define GET_DISABLED 11
8-+#define GET_DOUBLE 11
9++#define GET_MICROTIME 11
10 +#define GET_DISABLED 12
11
12 #define GET_ASK_ADDR 128
13@@ -866,12 +866,22 @@
14 diff -r 069dc6d4f269 mysys/my_getopt.c
15 --- a/mysys/my_getopt.c Mon Jun 01 00:35:20 2009 -0700
16 +++ b/mysys/my_getopt.c Mon Jun 01 00:35:30 2009 -0700
17+@@ -827,7 +827,8 @@
18+ #endif
19+ break;
20+ default:
21+- DBUG_ASSERT((optp->var_type & GET_TYPE_MASK) == GET_ULL);
22++ DBUG_ASSERT((optp->var_type & GET_TYPE_MASK) == GET_ULL
23++ || (optp->var_type & GET_TYPE_MASK) == GET_MICROTIME);
24+ break;
25+ }
26+
27 @@ -1061,6 +1061,9 @@
28 case GET_ULONG:
29 printf("%lu\n", *((ulong*) value));
30 break;
31-+ case GET_DOUBLE:
32-+ printf("%6f\n", *((double*) value));
33++ case GET_MICROTIME:
34++ printf("%6f\n", ((double)(*((longlong*) value))) / 1000000.0);
35 + break;
36 case GET_LL:
37 printf("%s\n", llstr(*((longlong*) value), buff));
38@@ -1477,7 +1487,7 @@
39 + {"long_query_time", OPT_LONG_QUERY_TIME,
40 + "Log all queries that have taken more than long_query_time seconds to execute to file.",
41 + (gptr*) &global_system_variables.long_query_time,
42-+ (gptr*) &max_system_variables.long_query_time, 0, GET_DOUBLE,
43++ (gptr*) &max_system_variables.long_query_time, 0, GET_MICROTIME,
44 + REQUIRED_ARG, 10000000, 0, LONG_TIMEOUT * 1000000, 0, 1, 0},
45 + {"min_examined_row_limit", OPT_MIN_EXAMINED_ROW_LIMIT,
46 + "Don't log queries which examine less than min_examined_row_limit rows to file.",

Subscribers

People subscribed via source and target branches

to all changes: