Merge lp:~percona-dev/percona-server/release-5.1.52-12-akopytov-bugfixes into lp:~percona-dev/percona-server/release-5.1.52-12

Proposed by Alexey Kopytov
Status: Merged
Approved by: Percona
Approved revision: no longer in the source branch.
Merged at revision: 148
Proposed branch: lp:~percona-dev/percona-server/release-5.1.52-12-akopytov-bugfixes
Merge into: lp:~percona-dev/percona-server/release-5.1.52-12
Diff against target: 538 lines (+116/-114)
1 file modified
userstat.patch (+116/-114)
To merge this branch: bzr merge lp:~percona-dev/percona-server/release-5.1.52-12-akopytov-bugfixes
Reviewer Review Type Date Requested Status
Yasufumi Kinoshita (community) Needs Fixing
Percona Approve
Review via email: mp+41747@code.launchpad.net

Commit message

LP bug#673567: Unnecessary compile-time warnings about -lrt

Compiler could produce spurious warnings when building on non-Linux
platforms.

Removed the compiler warning about missing clock_gettime(). We now check
if clock_gettime() is present in librt at configure stage. If yes, we add
-lrt to LIBS.

Description of the change

Fix for LP bug#673567.

To post a comment you must log in.
Revision history for this message
Percona (percona-team) wrote :

ok for me

review: Approve
Revision history for this message
Yasufumi Kinoshita (yasufumi-kinoshita) wrote :

Not OK for me.

1. remain #endif instead of #else (2 places)

   ############################################################
   you should test in real. it means you didn't even build :-(
   ############################################################
   I think you should test by mysql-test at least, when propose to merge

2. Don't break patch format as you can

   The difference should be minimum to review the contents later.

review: Needs Fixing
Revision history for this message
Alexey Kopytov (akopytov) wrote :

Yasufumu,

1. Thanks for noticing that, good catch. I didn't build because compilation on Mac OS X is currently broken by other unresolved bugs. So I have to fix them every time I build.

Since this proposal has already been merged, I will propose another merge and set you as a reviewer.

2. I rely on automated tools as much as possible. I would like to keep the patch minimal to simplify the review, but on the other hand I don't want to spend time on manual patch editing. Manual editing would result in more mistakes such as this one.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'userstat.patch'
2--- userstat.patch 2010-11-16 13:48:48 +0000
3+++ userstat.patch 2010-11-24 15:18:59 +0000
4@@ -18,9 +18,9 @@
5 posix_fallocate backtrace backtrace_symbols backtrace_symbols_fd printstack
6 do
7 diff -ruN a/configure.in b/configure.in
8---- a/configure.in 2010-08-04 02:24:24.000000000 +0900
9-+++ b/configure.in 2010-08-27 15:10:33.737073307 +0900
10-@@ -2086,7 +2086,7 @@
11+--- a/configure.in 2010-10-12 00:34:15.000000000 +0400
12++++ b/configure.in 2010-11-24 18:00:58.000000000 +0300
13+@@ -2086,13 +2086,16 @@
14 realpath rename rint rwlock_init setupterm \
15 shmget shmat shmdt shmctl sigaction sigemptyset sigaddset \
16 sighold sigset sigthreadmask port_create sleep \
17@@ -29,22 +29,58 @@
18 strtol strtoll strtoul strtoull tell tempnam thr_setconcurrency vidattr \
19 posix_fallocate backtrace backtrace_symbols backtrace_symbols_fd printstack)
20
21-diff -ruN a/include/config.h.in b/include/config.h.in
22---- a/include/config.h.in 2010-08-04 02:28:40.000000000 +0900
23-+++ b/include/config.h.in 2010-08-27 15:10:33.740077919 +0900
24-@@ -802,6 +802,9 @@
25- /* Define to 1 if you have the <stdlib.h> header file. */
26- #undef HAVE_STDLIB_H
27+ #
28+ #
29+ #
30++# The following change can be safely null-merged to 5.5
31++# since configure.cmake in 5.5 does the same check
32++AC_CHECK_LIB(rt, clock_gettime)
33+ case "$target" in
34+ *-*-aix4* | *-*-sco*)
35+ # (grr) aix 4.3 has a stub for clock_gettime, (returning ENOSYS)
36+--- a/include/config.h.in 2010-10-12 00:39:59.000000000 +0400
37++++ b/include/config.h.in 2010-11-24 17:53:34.000000000 +0300
38+@@ -491,6 +491,9 @@
39+ /* Define to 1 if you have the `pthread' library (-lpthread). */
40+ #undef HAVE_LIBPTHREAD
41+
42++/* Define to 1 if you have the `rt' library (-lrt). */
43++#undef HAVE_LIBRT
44++
45+ /* Define if have -lwrap */
46+ #undef HAVE_LIBWRAP
47+
48+@@ -835,6 +838,9 @@
49+ /* Define to 1 if you have the `strpbrk' function. */
50+ #undef HAVE_STRPBRK
51
52 +/* Define to 1 if you have the `strsep' function. */
53 +#undef HAVE_STRSEP
54 +
55- /* Define to 1 if you have the `stpcpy' function. */
56- #undef HAVE_STPCPY
57-
58-diff -ruN a/include/mysql/plugin.h b/include/mysql/plugin.h
59---- a/include/mysql/plugin.h 2010-08-27 14:38:08.682439958 +0900
60-+++ b/include/mysql/plugin.h 2010-08-27 15:10:33.742003842 +0900
61+ /* Define to 1 if you have the `strsignal' function. */
62+ #undef HAVE_STRSIGNAL
63+
64+@@ -856,7 +862,7 @@
65+ /* Define to 1 if you have the `strtoull' function. */
66+ #undef HAVE_STRTOULL
67+
68+-/* Define to 1 if `st_rdev' is member of `struct stat'. */
69++/* Define to 1 if `st_rdev' is a member of `struct stat'. */
70+ #undef HAVE_STRUCT_STAT_ST_RDEV
71+
72+ /* Define to 1 if your `struct stat' has `st_rdev'. Deprecated, use
73+@@ -1151,6 +1157,9 @@
74+ /* Define to the one symbol short name of this package. */
75+ #undef PACKAGE_TARNAME
76+
77++/* Define to the home page for this package. */
78++#undef PACKAGE_URL
79++
80+ /* Define to the version of this package. */
81+ #undef PACKAGE_VERSION
82+
83+--- a/include/mysql/plugin.h 2010-11-24 17:24:51.000000000 +0300
84++++ b/include/mysql/plugin.h 2010-11-24 17:24:52.000000000 +0300
85 @@ -705,6 +705,9 @@
86 unsigned long thd_log_slow_verbosity(const MYSQL_THD thd);
87 int thd_opt_slow_log();
88@@ -55,9 +91,8 @@
89 /**
90 Create a temporary file.
91
92-diff -ruN a/include/mysql_com.h b/include/mysql_com.h
93---- a/include/mysql_com.h 2010-08-04 02:24:30.000000000 +0900
94-+++ b/include/mysql_com.h 2010-08-27 15:10:33.743072186 +0900
95+--- a/include/mysql_com.h 2010-10-12 00:34:28.000000000 +0400
96++++ b/include/mysql_com.h 2010-11-24 17:28:26.000000000 +0300
97 @@ -29,6 +29,7 @@
98
99 #define SERVER_VERSION_LENGTH 60
100@@ -79,9 +114,8 @@
101
102 /* The following can't be set with mysql_refresh() */
103 #define REFRESH_READ_LOCK 16384 /* Lock tables for read */
104-diff -ruN /dev/null b/patch_info/userstats.info
105---- /dev/null 1970-01-01 09:00:00.000000000 +0900
106-+++ b/patch_info/userstats.info 2010-08-27 15:10:33.744161257 +0900
107+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
108++++ b/patch_info/userstats.info 2010-11-24 17:24:52.000000000 +0300
109 @@ -0,0 +1,11 @@
110 +File=userstats.patch
111 +Name=SHOW USER/TABLE/INDEX statistics
112@@ -94,9 +128,8 @@
113 +
114 +2008-11-26
115 +YK: add switch variable "userstat_running" to control INFORMATION_SCHEMA.*_STATISTICS (default:OFF)
116-diff -ruN a/sql/handler.cc b/sql/handler.cc
117---- a/sql/handler.cc 2010-08-04 02:24:27.000000000 +0900
118-+++ b/sql/handler.cc 2010-08-27 15:10:33.749058856 +0900
119+--- a/sql/handler.cc 2010-10-12 00:34:25.000000000 +0400
120++++ b/sql/handler.cc 2010-11-24 17:24:52.000000000 +0300
121 @@ -1194,6 +1194,8 @@
122 if (cookie)
123 tc_log->unlog(cookie, xid);
124@@ -244,9 +277,8 @@
125
126 /****************************************************************************
127 ** Some general functions that isn't in the handler class
128-diff -ruN a/sql/handler.h b/sql/handler.h
129---- a/sql/handler.h 2010-08-04 02:24:27.000000000 +0900
130-+++ b/sql/handler.h 2010-08-27 15:10:33.753058869 +0900
131+--- a/sql/handler.h 2010-10-12 00:34:25.000000000 +0400
132++++ b/sql/handler.h 2010-11-24 17:28:49.000000000 +0300
133 @@ -30,6 +30,10 @@
134
135 #define USING_TRANSACTIONS
136@@ -300,9 +332,8 @@
137
138 #define CHF_CREATE_FLAG 0
139 #define CHF_DELETE_FLAG 1
140-diff -ruN a/sql/lex.h b/sql/lex.h
141---- a/sql/lex.h 2010-08-27 14:29:26.009071592 +0900
142-+++ b/sql/lex.h 2010-08-27 15:10:33.755063742 +0900
143+--- a/sql/lex.h 2010-11-24 17:24:51.000000000 +0300
144++++ b/sql/lex.h 2010-11-24 17:28:26.000000000 +0300
145 @@ -106,6 +106,7 @@
146 { "CHECKSUM", SYM(CHECKSUM_SYM)},
147 { "CIPHER", SYM(CIPHER_SYM)},
148@@ -350,9 +381,8 @@
149 { "USE_FRM", SYM(USE_FRM)},
150 { "USING", SYM(USING)},
151 { "UTC_DATE", SYM(UTC_DATE_SYM)},
152-diff -ruN a/sql/log.cc b/sql/log.cc
153---- a/sql/log.cc 2010-08-27 14:43:41.986138797 +0900
154-+++ b/sql/log.cc 2010-08-27 15:10:33.761058932 +0900
155+--- a/sql/log.cc 2010-11-24 17:24:51.000000000 +0300
156++++ b/sql/log.cc 2010-11-24 17:24:52.000000000 +0300
157 @@ -826,6 +826,13 @@
158 mysql_slow_log.reopen_file();
159 }
160@@ -485,9 +515,8 @@
161
162 if (incident && write_incident(thd, FALSE))
163 goto err;
164-diff -ruN a/sql/log.h b/sql/log.h
165---- a/sql/log.h 2010-08-27 14:38:08.690071101 +0900
166-+++ b/sql/log.h 2010-08-27 15:13:33.762976324 +0900
167+--- a/sql/log.h 2010-11-24 17:24:51.000000000 +0300
168++++ b/sql/log.h 2010-11-24 17:24:52.000000000 +0300
169 @@ -361,7 +361,7 @@
170 bool write(THD *thd, IO_CACHE *cache, Log_event *commit_event, bool incident);
171
172@@ -513,9 +542,8 @@
173 /* Perform basic logger cleanup. this will leave e.g. error log open. */
174 void cleanup_base();
175 /* Free memory. Nothing could be logged after this function is called */
176-diff -ruN a/sql/mysql_priv.h b/sql/mysql_priv.h
177---- a/sql/mysql_priv.h 2010-08-27 14:38:08.699057407 +0900
178-+++ b/sql/mysql_priv.h 2010-08-27 15:10:33.805058568 +0900
179+--- a/sql/mysql_priv.h 2010-11-24 17:24:51.000000000 +0300
180++++ b/sql/mysql_priv.h 2010-11-24 17:31:34.000000000 +0300
181 @@ -1139,7 +1139,17 @@
182 bool multi_delete_set_locks_and_link_aux_tables(LEX *lex);
183 void init_max_user_conn(void);
184@@ -566,9 +594,8 @@
185
186 extern const char *opt_date_time_formats[];
187 extern KNOWN_DATE_TIME_FORMAT known_date_time_formats[];
188-diff -ruN a/sql/mysqld.cc b/sql/mysqld.cc
189---- a/sql/mysqld.cc 2010-08-27 14:43:41.996021369 +0900
190-+++ b/sql/mysqld.cc 2010-08-27 15:10:33.772058694 +0900
191+--- a/sql/mysqld.cc 2010-11-24 17:24:51.000000000 +0300
192++++ b/sql/mysqld.cc 2010-11-24 17:31:34.000000000 +0300
193 @@ -533,6 +533,7 @@
194 uint opt_debug_sync_timeout= 0;
195 #endif /* defined(ENABLED_DEBUG_SYNC) */
196@@ -711,9 +738,8 @@
197 {"binlog-direct-non-transactional-updates", OPT_BINLOG_DIRECT_NON_TRANS_UPDATE,
198 "Causes updates to non-transactional engines using statement format to be "
199 "written directly to binary log. Before using this option, make sure that "
200-diff -ruN a/sql/set_var.cc b/sql/set_var.cc
201---- a/sql/set_var.cc 2010-08-27 14:43:42.004008722 +0900
202-+++ b/sql/set_var.cc 2010-08-27 15:10:33.809988740 +0900
203+--- a/sql/set_var.cc 2010-11-24 17:24:51.000000000 +0300
204++++ b/sql/set_var.cc 2010-11-24 17:31:34.000000000 +0300
205 @@ -556,6 +556,10 @@
206 static sys_var_thd_ulong sys_read_buff_size(&vars, "read_buffer_size",
207 &SV::read_buff_size);
208@@ -725,9 +751,8 @@
209 static sys_var_thd_ulong sys_read_rnd_buff_size(&vars, "read_rnd_buffer_size",
210 &SV::read_rnd_buff_size);
211 static sys_var_thd_ulong sys_div_precincrement(&vars, "div_precision_increment",
212-diff -ruN a/sql/sql_base.cc b/sql/sql_base.cc
213---- a/sql/sql_base.cc 2010-08-04 02:24:34.000000000 +0900
214-+++ b/sql/sql_base.cc 2010-08-27 15:10:33.818058934 +0900
215+--- a/sql/sql_base.cc 2010-10-12 00:34:33.000000000 +0400
216++++ b/sql/sql_base.cc 2010-11-24 17:29:05.000000000 +0300
217 @@ -1382,6 +1382,12 @@
218 DBUG_PRINT("tcache", ("table: '%s'.'%s' 0x%lx", table->s->db.str,
219 table->s->table_name.str, (long) table));
220@@ -750,9 +775,8 @@
221 free_io_cache(table);
222 closefrm(table, 0);
223 if (delete_table)
224-diff -ruN a/sql/sql_class.cc b/sql/sql_class.cc
225---- a/sql/sql_class.cc 2010-08-27 14:38:08.741990000 +0900
226-+++ b/sql/sql_class.cc 2010-08-27 15:10:33.825058007 +0900
227+--- a/sql/sql_class.cc 2010-11-24 17:24:51.000000000 +0300
228++++ b/sql/sql_class.cc 2010-11-24 17:31:33.000000000 +0300
229 @@ -706,6 +706,13 @@
230 mysys_var=0;
231 binlog_evt_union.do_union= FALSE;
232@@ -925,9 +949,8 @@
233 }
234
235
236-diff -ruN a/sql/sql_class.h b/sql/sql_class.h
237---- a/sql/sql_class.h 2010-08-27 14:43:42.008006390 +0900
238-+++ b/sql/sql_class.h 2010-08-27 15:10:33.830058443 +0900
239+--- a/sql/sql_class.h 2010-11-24 17:24:51.000000000 +0300
240++++ b/sql/sql_class.h 2010-11-24 17:28:57.000000000 +0300
241 @@ -1435,6 +1435,8 @@
242 first byte of the packet in do_command()
243 */
244@@ -1034,9 +1057,8 @@
245
246 /** A short cut for thd->main_da.set_ok_status(). */
247
248-diff -ruN a/sql/sql_connect.cc b/sql/sql_connect.cc
249---- a/sql/sql_connect.cc 2010-08-27 14:38:08.750990238 +0900
250-+++ b/sql/sql_connect.cc 2010-08-27 15:10:33.834058369 +0900
251+--- a/sql/sql_connect.cc 2010-11-24 17:24:51.000000000 +0300
252++++ b/sql/sql_connect.cc 2010-11-24 17:24:52.000000000 +0300
253 @@ -42,6 +42,24 @@
254 extern void win_install_sigabrt_handler();
255 #endif
256@@ -1698,9 +1720,8 @@
257 if (thread_scheduler.end_thread(thd,1))
258 return 0; // Probably no-threads
259
260-diff -ruN a/sql/sql_delete.cc b/sql/sql_delete.cc
261---- a/sql/sql_delete.cc 2010-08-04 02:24:34.000000000 +0900
262-+++ b/sql/sql_delete.cc 2010-08-27 15:10:33.837058490 +0900
263+--- a/sql/sql_delete.cc 2010-10-12 00:34:33.000000000 +0400
264++++ b/sql/sql_delete.cc 2010-11-24 17:24:52.000000000 +0300
265 @@ -452,6 +452,7 @@
266 my_ok(thd, (ha_rows) thd->row_count_func);
267 DBUG_PRINT("info",("%ld records deleted",(long) deleted));
268@@ -1717,9 +1738,8 @@
269 return 0;
270 }
271
272-diff -ruN a/sql/sql_insert.cc b/sql/sql_insert.cc
273---- a/sql/sql_insert.cc 2010-08-04 02:24:19.000000000 +0900
274-+++ b/sql/sql_insert.cc 2010-08-27 15:10:33.841059138 +0900
275+--- a/sql/sql_insert.cc 2010-10-12 00:34:16.000000000 +0400
276++++ b/sql/sql_insert.cc 2010-11-24 17:24:52.000000000 +0300
277 @@ -981,6 +981,7 @@
278 thd->row_count_func= info.copied + info.deleted + updated;
279 ::my_ok(thd, (ulong) thd->row_count_func, id, buff);
280@@ -1736,9 +1756,8 @@
281 DBUG_RETURN(0);
282 }
283
284-diff -ruN a/sql/sql_lex.h b/sql/sql_lex.h
285---- a/sql/sql_lex.h 2010-08-27 14:29:26.030989835 +0900
286-+++ b/sql/sql_lex.h 2010-08-27 15:10:33.844058293 +0900
287+--- a/sql/sql_lex.h 2010-11-24 17:24:51.000000000 +0300
288++++ b/sql/sql_lex.h 2010-11-24 17:31:33.000000000 +0300
289 @@ -124,6 +124,9 @@
290 When a command is added here, be sure it's also added in mysqld.cc
291 in "struct show_var_st status_vars[]= {" ...
292@@ -1749,9 +1768,8 @@
293 /* This should be the last !!! */
294 SQLCOM_END
295 };
296-diff -ruN a/sql/sql_parse.cc b/sql/sql_parse.cc
297---- a/sql/sql_parse.cc 2010-08-27 14:38:08.757059579 +0900
298-+++ b/sql/sql_parse.cc 2010-08-27 15:15:30.420996146 +0900
299+--- a/sql/sql_parse.cc 2010-11-24 17:24:51.000000000 +0300
300++++ b/sql/sql_parse.cc 2010-11-24 17:45:19.000000000 +0300
301 @@ -46,6 +46,9 @@
302 static bool execute_sqlcom_select(THD *thd, TABLE_LIST *all_tables);
303 static bool check_show_create_table_access(THD *thd, TABLE_LIST *table);
304@@ -1876,7 +1894,7 @@
305 my_error(ER_SPECIFIC_ACCESS_DENIED_ERROR, MYF(0), command);
306 return 1;
307 #else
308-@@ -6054,6 +6087,34 @@
309+@@ -6054,6 +6087,30 @@
310 lex_start(thd);
311 mysql_reset_thd_for_next_command(thd);
312
313@@ -1897,10 +1915,6 @@
314 + if (!(cputime_error = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp)))
315 + start_cpu_nsecs = tp.tv_sec*1000000000.0+tp.tv_nsec;
316 +#else
317-+#warning : HAVE_CLOCK_GETTIME is disabled.
318-+#warning : Most systems require librt library to use the function clock_gettime().
319-+#warning : Did you set environment when ./configure ? (e.g. "export LIBS=-lrt" for sh)
320-+#endif
321 +
322 + // Gets the start time, in order to measure how long this command takes.
323 + if (!(start_time_error = gettimeofday(&start_time, NULL))) {
324@@ -1911,7 +1925,7 @@
325 if (query_cache_send_result_to_client(thd, rawbuf, length) <= 0)
326 {
327 LEX *lex= thd->lex;
328-@@ -6134,6 +6195,43 @@
329+@@ -6134,6 +6191,43 @@
330 *found_semicolon= NULL;
331 }
332
333@@ -1955,7 +1969,7 @@
334 DBUG_VOID_RETURN;
335 }
336
337-@@ -6999,6 +7097,13 @@
338+@@ -6999,6 +7093,13 @@
339 if (flush_error_log())
340 result=1;
341 }
342@@ -1969,7 +1983,7 @@
343 #ifdef HAVE_QUERY_CACHE
344 if (options & REFRESH_QUERY_CACHE_FREE)
345 {
346-@@ -7099,6 +7204,40 @@
347+@@ -7099,6 +7200,40 @@
348 #endif
349 if (options & REFRESH_USER_RESOURCES)
350 reset_mqh((LEX_USER *) NULL, 0); /* purecov: inspected */
351@@ -2010,9 +2024,8 @@
352 *write_to_binlog= tmp_write_to_binlog;
353 /*
354 If the query was killed then this function must fail.
355-diff -ruN a/sql/sql_prepare.cc b/sql/sql_prepare.cc
356---- a/sql/sql_prepare.cc 2010-08-27 14:29:26.043058814 +0900
357-+++ b/sql/sql_prepare.cc 2010-08-27 15:10:33.858058832 +0900
358+--- a/sql/sql_prepare.cc 2010-11-24 17:24:51.000000000 +0300
359++++ b/sql/sql_prepare.cc 2010-11-24 17:45:09.000000000 +0300
360 @@ -96,6 +96,9 @@
361 #include <mysql_com.h>
362 #endif
363@@ -2023,7 +2036,7 @@
364 /**
365 A result class used to send cursor rows using the binary protocol.
366 */
367-@@ -2103,8 +2106,36 @@
368+@@ -2103,8 +2106,32 @@
369 /* First of all clear possible warnings from the previous command */
370 mysql_reset_thd_for_next_command(thd);
371
372@@ -2044,10 +2057,6 @@
373 + if (!(cputime_error = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp)))
374 + start_cpu_nsecs = tp.tv_sec*1000000000.0+tp.tv_nsec;
375 +#else
376-+#warning : HAVE_CLOCK_GETTIME is disabled.
377-+#warning : Most systems require librt library to use the function clock_gettime().
378-+#warning : Did you set environment when ./configure ? (e.g. "export LIBS=-lrt" for sh)
379-+#endif
380 +
381 + // Gets the start time, in order to measure how long this command takes.
382 + if (!(start_time_error = gettimeofday(&start_time, NULL))) {
383@@ -2061,7 +2070,7 @@
384
385 if (thd->stmt_map.insert(thd, stmt))
386 {
387-@@ -2112,7 +2143,7 @@
388+@@ -2112,7 +2139,7 @@
389 The error is set in the insert. The statement itself
390 will be also deleted there (this is how the hash works).
391 */
392@@ -2070,7 +2079,7 @@
393 }
394
395 /* Reset warnings from previous command */
396-@@ -2139,6 +2170,44 @@
397+@@ -2139,6 +2166,44 @@
398 thd->protocol= save_protocol;
399
400 /* check_prepared_statemnt sends the metadata packet in case of success */
401@@ -2115,7 +2124,7 @@
402 DBUG_VOID_RETURN;
403 }
404
405-@@ -2489,12 +2558,36 @@
406+@@ -2489,12 +2554,36 @@
407 /* First of all clear possible warnings from the previous command */
408 mysql_reset_thd_for_next_command(thd);
409
410@@ -2153,7 +2162,7 @@
411 }
412
413 #if defined(ENABLED_PROFILING) && defined(COMMUNITY_SERVER)
414-@@ -2515,6 +2608,44 @@
415+@@ -2515,6 +2604,44 @@
416 /* Close connection socket; for use with client testing (Bug#43560). */
417 DBUG_EXECUTE_IF("close_conn_after_stmt_execute", vio_close(thd->net.vio););
418
419@@ -2198,7 +2207,7 @@
420 DBUG_VOID_RETURN;
421
422 }
423-@@ -2588,20 +2719,45 @@
424+@@ -2588,20 +2715,45 @@
425
426 /* First of all clear possible warnings from the previous command */
427 mysql_reset_thd_for_next_command(thd);
428@@ -2246,7 +2255,7 @@
429 }
430
431 thd->stmt_arena= stmt;
432-@@ -2625,6 +2781,44 @@
433+@@ -2625,6 +2777,44 @@
434 thd->restore_backup_statement(stmt, &stmt_backup);
435 thd->stmt_arena= thd;
436
437@@ -2291,7 +2300,7 @@
438 DBUG_VOID_RETURN;
439 }
440
441-@@ -2655,13 +2849,37 @@
442+@@ -2655,13 +2845,37 @@
443 /* First of all clear possible warnings from the previous command */
444 mysql_reset_thd_for_next_command(thd);
445
446@@ -2330,7 +2339,7 @@
447 }
448
449 stmt->close_cursor();
450-@@ -2678,6 +2896,44 @@
451+@@ -2678,6 +2892,44 @@
452
453 my_ok(thd);
454
455@@ -2375,9 +2384,8 @@
456 DBUG_VOID_RETURN;
457 }
458
459-diff -ruN a/sql/sql_show.cc b/sql/sql_show.cc
460---- a/sql/sql_show.cc 2010-08-27 14:48:13.050141329 +0900
461-+++ b/sql/sql_show.cc 2010-08-27 15:10:33.866059533 +0900
462+--- a/sql/sql_show.cc 2010-11-24 17:24:52.000000000 +0300
463++++ b/sql/sql_show.cc 2010-11-24 17:31:33.000000000 +0300
464 @@ -84,6 +84,40 @@
465
466 static COND * make_cond_for_info_schema(COND *cond, TABLE_LIST *table);
467@@ -2848,9 +2856,8 @@
468 {"VARIABLES", variables_fields_info, create_schema_table, fill_variables,
469 make_old_format, 0, 0, -1, 1, 0},
470 {"VIEWS", view_fields_info, create_schema_table,
471-diff -ruN a/sql/sql_update.cc b/sql/sql_update.cc
472---- a/sql/sql_update.cc 2010-08-04 02:24:35.000000000 +0900
473-+++ b/sql/sql_update.cc 2010-08-27 15:10:33.880988383 +0900
474+--- a/sql/sql_update.cc 2010-10-12 00:34:16.000000000 +0400
475++++ b/sql/sql_update.cc 2010-11-24 17:24:52.000000000 +0300
476 @@ -843,6 +843,7 @@
477 thd->row_count_func=
478 (thd->client_capabilities & CLIENT_FOUND_ROWS) ? found : updated;
479@@ -2866,9 +2873,8 @@
480 + thd->updated_row_count += thd->row_count_func;
481 DBUG_RETURN(FALSE);
482 }
483-diff -ruN a/sql/sql_yacc.yy b/sql/sql_yacc.yy
484---- a/sql/sql_yacc.yy 2010-08-27 14:29:26.060990130 +0900
485-+++ b/sql/sql_yacc.yy 2010-08-27 15:10:33.890987529 +0900
486+--- a/sql/sql_yacc.yy 2010-11-24 17:24:51.000000000 +0300
487++++ b/sql/sql_yacc.yy 2010-11-24 17:31:33.000000000 +0300
488 @@ -757,6 +757,7 @@
489 %token CHECK_SYM /* SQL-2003-R */
490 %token CIPHER_SYM
491@@ -3026,9 +3032,8 @@
492 | USE_FRM {}
493 | VARIABLES {}
494 | VIEW_SYM {}
495-diff -ruN a/sql/structs.h b/sql/structs.h
496---- a/sql/structs.h 2010-08-04 02:24:35.000000000 +0900
497-+++ b/sql/structs.h 2010-08-27 15:10:33.904059058 +0900
498+--- a/sql/structs.h 2010-10-12 00:34:34.000000000 +0400
499++++ b/sql/structs.h 2010-11-24 17:24:52.000000000 +0300
500 @@ -237,6 +237,171 @@
501 USER_RESOURCES user_resources;
502 } USER_CONN;
503@@ -3201,9 +3206,8 @@
504 /* Bits in form->update */
505 #define REG_MAKE_DUPP 1 /* Make a copy of record when read */
506 #define REG_NEW_RECORD 2 /* Write a new record if not found */
507-diff -ruN a/sql/table.h b/sql/table.h
508---- a/sql/table.h 2010-08-04 02:24:19.000000000 +0900
509-+++ b/sql/table.h 2010-08-27 15:10:33.906987259 +0900
510+--- a/sql/table.h 2010-10-12 00:34:16.000000000 +0400
511++++ b/sql/table.h 2010-11-24 17:31:33.000000000 +0300
512 @@ -944,10 +944,12 @@
513 enum enum_schema_tables
514 {
515@@ -3229,9 +3233,8 @@
516 SCH_VARIABLES,
517 SCH_VIEWS
518 };
519-diff -ruN a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc
520---- a/storage/innobase/handler/ha_innodb.cc 2010-08-04 02:24:20.000000000 +0900
521-+++ b/storage/innobase/handler/ha_innodb.cc 2010-08-27 15:10:33.913058592 +0900
522+--- a/storage/innobase/handler/ha_innodb.cc 2010-10-12 00:34:15.000000000 +0400
523++++ b/storage/innobase/handler/ha_innodb.cc 2010-11-24 17:24:52.000000000 +0300
524 @@ -4055,6 +4055,8 @@
525
526 error = row_insert_for_mysql((byte*) record, prebuilt);
527@@ -3269,9 +3272,8 @@
528
529 } else if (ret == DB_RECORD_NOT_FOUND) {
530 error = HA_ERR_END_OF_FILE;
531-diff -ruN a/storage/myisam/ha_myisam.cc b/storage/myisam/ha_myisam.cc
532---- a/storage/myisam/ha_myisam.cc 2010-08-04 02:24:27.000000000 +0900
533-+++ b/storage/myisam/ha_myisam.cc 2010-08-27 15:10:33.921058182 +0900
534+--- a/storage/myisam/ha_myisam.cc 2010-10-12 00:34:25.000000000 +0400
535++++ b/storage/myisam/ha_myisam.cc 2010-11-24 17:24:52.000000000 +0300
536 @@ -761,6 +761,7 @@
537
538 int ha_myisam::write_row(uchar *buf)

Subscribers

People subscribed via source and target branches

to all changes: