Merge lp:~laurynas-biveinis/percona-server/bug902467 into lp:percona-server/5.1

Proposed by Laurynas Biveinis
Status: Merged
Approved by: Alexey Kopytov
Approved revision: no longer in the source branch.
Merged at revision: 413
Proposed branch: lp:~laurynas-biveinis/percona-server/bug902467
Merge into: lp:percona-server/5.1
Diff against target: 87 lines (+6/-8)
3 files modified
Percona-Server/sql/log.cc (+0/-3)
Percona-Server/sql/sql_show.cc (+4/-0)
Percona-Server/storage/innodb_plugin/os/os0file.c (+2/-5)
To merge this branch: bzr merge lp:~laurynas-biveinis/percona-server/bug902467
Reviewer Review Type Date Requested Status
Alexey Kopytov (community) Approve
Review via email: mp+86032@code.launchpad.net

Description of the change

Fix bug 902467:

os/os0file.c: In function ‘os_aio_simulated_wake_handler_thread’:
os/os0file.c:3596:9: error: variable ‘segment’ set but not used
[-Werror=unused-but-set-variable]
os/os0file.c: In function ‘os_aio_simulated_handle’:
os/os0file.c:4081:9: error: variable ‘segment’ set but not used
[-Werror=unused-but-set-variable]

log.cc: In member function ‘bool LOGGER::slow_log_print(THD*, const
char*, uint, ulonglong)’:
log.cc:998:12: error: variable ‘current_time’ set but not used
[-Werror=unused-but-set-variable]

sql_show.cc: In function ‘int store_create_info(THD*, TABLE_LIST*,
String*, HA_CREATE_INFO*, bool)’:
sql_show.cc:1254:8: error: variable ‘show_table_options’ set but not
used [-Werror=unused-but-set-variable]

The fix is to remove those variables, or, in case of
show_table_options, surround with the same #ifdef guard as the code
that uses the value.

To post a comment you must log in.
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Jenkins results:
http://jenkins.percona.com/job/percona-server-5.1-param/214/

The Oneiric debug testing now works. The rest of failures is the usual headache.

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

OK to merge, thanks.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Percona-Server/sql/log.cc'
2--- Percona-Server/sql/log.cc 2011-11-24 02:01:54 +0000
3+++ Percona-Server/sql/log.cc 2011-12-16 12:23:26 +0000
4@@ -995,8 +995,6 @@
5
6 if (*slow_log_handler_list)
7 {
8- time_t current_time;
9-
10 /* do not log slow queries from replication threads */
11 if (thd->slave_thread && !opt_log_slow_slave_statements)
12 return 0;
13@@ -1016,7 +1014,6 @@
14 sctx->ip ? sctx->ip : "", "]", NullS) -
15 user_host_buff);
16
17- current_time= my_time_possible_from_micro(current_utime);
18 if (thd->start_utime)
19 {
20 if(current_utime < thd->start_utime)
21
22=== modified file 'Percona-Server/sql/sql_show.cc'
23--- Percona-Server/sql/sql_show.cc 2011-11-24 02:01:17 +0000
24+++ Percona-Server/sql/sql_show.cc 2011-12-16 12:23:26 +0000
25@@ -1251,7 +1251,9 @@
26 handler *file= table->file;
27 TABLE_SHARE *share= table->s;
28 HA_CREATE_INFO create_info;
29+#ifdef WITH_PARTITION_STORAGE_ENGINE
30 bool show_table_options= FALSE;
31+#endif
32 bool foreign_db_mode= (thd->variables.sql_mode & (MODE_POSTGRESQL |
33 MODE_ORACLE |
34 MODE_MSSQL |
35@@ -1466,7 +1468,9 @@
36 packet->append(STRING_WITH_LEN("\n)"));
37 if (!(thd->variables.sql_mode & MODE_NO_TABLE_OPTIONS) && !foreign_db_mode)
38 {
39+#ifdef WITH_PARTITION_STORAGE_ENGINE
40 show_table_options= TRUE;
41+#endif
42 /*
43 Get possible table space definitions and append them
44 to the CREATE TABLE statement
45
46=== modified file 'Percona-Server/storage/innodb_plugin/os/os0file.c'
47--- Percona-Server/storage/innodb_plugin/os/os0file.c 2011-11-24 02:01:35 +0000
48+++ Percona-Server/storage/innodb_plugin/os/os0file.c 2011-12-16 12:23:26 +0000
49@@ -3593,13 +3593,12 @@
50 {
51 os_aio_array_t* array;
52 os_aio_slot_t* slot;
53- ulint segment;
54 ulint n;
55 ulint i;
56
57 ut_ad(!os_aio_use_native_aio);
58
59- segment = os_aio_get_array_and_local_segment(&array, global_segment);
60+ os_aio_get_array_and_local_segment(&array, global_segment);
61
62 n = array->n_slots;
63
64@@ -4078,7 +4077,6 @@
65 ulint* space_id)
66 {
67 os_aio_array_t* array;
68- ulint segment;
69 os_aio_slot_t* slot;
70 os_aio_slot_t* slot2;
71 os_aio_slot_t* consecutive_ios[OS_AIO_MERGE_N_CONSECUTIVE];
72@@ -4101,7 +4099,7 @@
73 /* Fix compiler warning */
74 *consecutive_ios = NULL;
75
76- segment = os_aio_get_array_and_local_segment(&array, global_segment);
77+ os_aio_get_array_and_local_segment(&array, global_segment);
78
79 restart:
80 /* NOTE! We only access constant fields in os_aio_array. Therefore
81@@ -4110,7 +4108,6 @@
82 srv_set_io_thread_op_info(global_segment,
83 "looking for i/o requests (a)");
84 ut_ad(os_aio_validate());
85- ut_ad(segment < array->n_segments);
86
87 n = array->n_slots;
88

Subscribers

People subscribed via source and target branches