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
=== modified file 'microslow_innodb.patch'
--- microslow_innodb.patch 2009-06-01 07:37:47 +0000
+++ microslow_innodb.patch 2009-06-05 05:44:30 +0000
@@ -6,7 +6,7 @@
6 #define GET_STR 96 #define GET_STR 9
7 #define GET_STR_ALLOC 107 #define GET_STR_ALLOC 10
8-#define GET_DISABLED 118-#define GET_DISABLED 11
9+#define GET_DOUBLE 119+#define GET_MICROTIME 11
10+#define GET_DISABLED 1210+#define GET_DISABLED 12
11 11
12 #define GET_ASK_ADDR 12812 #define GET_ASK_ADDR 128
@@ -866,12 +866,22 @@
866diff -r 069dc6d4f269 mysys/my_getopt.c866diff -r 069dc6d4f269 mysys/my_getopt.c
867--- a/mysys/my_getopt.c Mon Jun 01 00:35:20 2009 -0700867--- a/mysys/my_getopt.c Mon Jun 01 00:35:20 2009 -0700
868+++ b/mysys/my_getopt.c Mon Jun 01 00:35:30 2009 -0700868+++ b/mysys/my_getopt.c Mon Jun 01 00:35:30 2009 -0700
869@@ -827,7 +827,8 @@
870 #endif
871 break;
872 default:
873- DBUG_ASSERT((optp->var_type & GET_TYPE_MASK) == GET_ULL);
874+ DBUG_ASSERT((optp->var_type & GET_TYPE_MASK) == GET_ULL
875+ || (optp->var_type & GET_TYPE_MASK) == GET_MICROTIME);
876 break;
877 }
878
869@@ -1061,6 +1061,9 @@879@@ -1061,6 +1061,9 @@
870 case GET_ULONG:880 case GET_ULONG:
871 printf("%lu\n", *((ulong*) value));881 printf("%lu\n", *((ulong*) value));
872 break;882 break;
873+ case GET_DOUBLE:883+ case GET_MICROTIME:
874+ printf("%6f\n", *((double*) value));884+ printf("%6f\n", ((double)(*((longlong*) value))) / 1000000.0);
875+ break;885+ break;
876 case GET_LL:886 case GET_LL:
877 printf("%s\n", llstr(*((longlong*) value), buff));887 printf("%s\n", llstr(*((longlong*) value), buff));
@@ -1477,7 +1487,7 @@
1477+ {"long_query_time", OPT_LONG_QUERY_TIME,1487+ {"long_query_time", OPT_LONG_QUERY_TIME,
1478+ "Log all queries that have taken more than long_query_time seconds to execute to file.",1488+ "Log all queries that have taken more than long_query_time seconds to execute to file.",
1479+ (gptr*) &global_system_variables.long_query_time,1489+ (gptr*) &global_system_variables.long_query_time,
1480+ (gptr*) &max_system_variables.long_query_time, 0, GET_DOUBLE,1490+ (gptr*) &max_system_variables.long_query_time, 0, GET_MICROTIME,
1481+ REQUIRED_ARG, 10000000, 0, LONG_TIMEOUT * 1000000, 0, 1, 0},1491+ REQUIRED_ARG, 10000000, 0, LONG_TIMEOUT * 1000000, 0, 1, 0},
1482+ {"min_examined_row_limit", OPT_MIN_EXAMINED_ROW_LIMIT,1492+ {"min_examined_row_limit", OPT_MIN_EXAMINED_ROW_LIMIT,
1483+ "Don't log queries which examine less than min_examined_row_limit rows to file.",1493+ "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: