Merge lp:~percona-dev/percona-patches/5.0.77-bug-382778 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-bug-382778
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-bug-382778
Reviewer Review Type Date Requested Status
Vadim Tkachenko Approve
Review via email: mp+7092@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
=== modified file 'microslow_innodb.patch'
--- microslow_innodb.patch 2009-05-27 01:07:17 +0000
+++ microslow_innodb.patch 2009-06-05 05:44:40 +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
@@ -864,12 +864,22 @@
864diff -r 04958490fc6d mysys/my_getopt.c864diff -r 04958490fc6d mysys/my_getopt.c
865--- a/mysys/my_getopt.c Tue Feb 17 22:32:27 2009 -0800865--- a/mysys/my_getopt.c Tue Feb 17 22:32:27 2009 -0800
866+++ b/mysys/my_getopt.c Tue Feb 17 22:33:00 2009 -0800866+++ b/mysys/my_getopt.c Tue Feb 17 22:33:00 2009 -0800
867@@ -827,7 +827,8 @@
868 #endif
869 break;
870 default:
871- DBUG_ASSERT((optp->var_type & GET_TYPE_MASK) == GET_ULL);
872+ DBUG_ASSERT((optp->var_type & GET_TYPE_MASK) == GET_ULL
873+ || (optp->var_type & GET_TYPE_MASK) == GET_MICROTIME);
874 break;
875 }
876
867@@ -1061,6 +1061,9 @@877@@ -1061,6 +1061,9 @@
868 case GET_ULONG:878 case GET_ULONG:
869 printf("%lu\n", *((ulong*) value));879 printf("%lu\n", *((ulong*) value));
870 break;880 break;
871+ case GET_DOUBLE:881+ case GET_MICROTIME:
872+ printf("%6f\n", *((double*) value));882+ printf("%6f\n", ((double)(*((longlong*) value))) / 1000000.0);
873+ break;883+ break;
874 case GET_LL:884 case GET_LL:
875 printf("%s\n", llstr(*((longlong*) value), buff));885 printf("%s\n", llstr(*((longlong*) value), buff));
@@ -1473,7 +1483,7 @@
1473+ {"long_query_time", OPT_LONG_QUERY_TIME,1483+ {"long_query_time", OPT_LONG_QUERY_TIME,
1474+ "Log all queries that have taken more than long_query_time seconds to execute to file.",1484+ "Log all queries that have taken more than long_query_time seconds to execute to file.",
1475+ (gptr*) &global_system_variables.long_query_time,1485+ (gptr*) &global_system_variables.long_query_time,
1476+ (gptr*) &max_system_variables.long_query_time, 0, GET_DOUBLE,1486+ (gptr*) &max_system_variables.long_query_time, 0, GET_MICROTIME,
1477+ REQUIRED_ARG, 10000000, 0, LONG_TIMEOUT * 1000000, 0, 1, 0},1487+ REQUIRED_ARG, 10000000, 0, LONG_TIMEOUT * 1000000, 0, 1, 0},
1478+ {"min_examined_row_limit", OPT_MIN_EXAMINED_ROW_LIMIT,1488+ {"min_examined_row_limit", OPT_MIN_EXAMINED_ROW_LIMIT,
1479+ "Don't log queries which examine less than min_examined_row_limit rows to file.",1489+ "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: