Skip to content

Commit 6322913

Browse files
Jan Lindströmsanja-byelkin
authored andcommitted
MDEV-12472: InnoDB should accept XtraDB parameters, warning that they are ignored
Added a new file ha_xtradb.h where XtraDB parameters are defined. This file is included in two places to avoid too intrusive change to ha_innodb.cc that would make future merges harder. innodb_show_locks_held and innodb_show_verbose_locks should be implemented (but on different commit).
1 parent 96987cb commit 6322913

File tree

5 files changed

+1534
-0
lines changed

5 files changed

+1534
-0
lines changed
Lines changed: 313 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,313 @@
1+
select @@innodb_adaptive_hash_index_partitions, @@innodb_adaptive_hash_index_parts;
2+
@@innodb_adaptive_hash_index_partitions @@innodb_adaptive_hash_index_parts
3+
16 16
4+
set global innodb_adaptive_hash_index_partitions=1;
5+
ERROR HY000: Variable 'innodb_adaptive_hash_index_partitions' is a read only variable
6+
select @@innodb_buffer_pool_populate;
7+
@@innodb_buffer_pool_populate
8+
1
9+
set global innodb_buffer_pool_populate=1;
10+
ERROR HY000: Variable 'innodb_buffer_pool_populate' is a read only variable
11+
select @@innodb_cleaner_eviction_factor;
12+
@@innodb_cleaner_eviction_factor
13+
1
14+
set global innodb_cleaner_eviction_factor=1;
15+
Warnings:
16+
Warning 1287 Using innodb_cleaner_eviction_factor is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
17+
select @@innodb_cleaner_eviction_factor;
18+
@@innodb_cleaner_eviction_factor
19+
1
20+
select @@innodb_cleaner_flush_chunk_size;
21+
@@innodb_cleaner_flush_chunk_size
22+
16
23+
set global innodb_cleaner_flush_chunk_size=8;
24+
Warnings:
25+
Warning 1287 Using innodb_cleaner_flush_chunk_size is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
26+
select @@innodb_cleaner_flush_chunk_size;
27+
@@innodb_cleaner_flush_chunk_size
28+
16
29+
select @@innodb_cleaner_free_list_lwm;
30+
@@innodb_cleaner_free_list_lwm
31+
1
32+
set global innodb_cleaner_free_list_lwm=1;
33+
Warnings:
34+
Warning 1287 Using innodb_cleaner_free_list_lwm is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
35+
select @@innodb_cleaner_free_list_lwm;
36+
@@innodb_cleaner_free_list_lwm
37+
1
38+
select @@innodb_cleaner_lru_chunk_size;
39+
@@innodb_cleaner_lru_chunk_size
40+
1
41+
set global innodb_cleaner_lru_chunk_size=8;
42+
Warnings:
43+
Warning 1287 Using innodb_cleaner_lru_chunk_size is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
44+
select @@innodb_cleaner_lru_chunk_size;
45+
@@innodb_cleaner_lru_chunk_size
46+
1
47+
select @@innodb_cleaner_lsn_age_factor;
48+
@@innodb_cleaner_lsn_age_factor
49+
HIGH_CHECKPOINT
50+
set global innodb_cleaner_lsn_age_factor=HIGH_CHECKPOINT;
51+
Warnings:
52+
Warning 1287 Using innodb_cleaner_lsn_age_factor is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
53+
select @@innodb_cleaner_lsn_age_factor;
54+
@@innodb_cleaner_lsn_age_factor
55+
HIGH_CHECKPOINT
56+
select @@innodb_cleaner_max_flush_time;
57+
@@innodb_cleaner_max_flush_time
58+
1
59+
set global innodb_cleaner_max_flush_time=1;
60+
Warnings:
61+
Warning 1287 Using innodb_cleaner_max_flush_time is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
62+
select @@innodb_cleaner_max_flush_time;
63+
@@innodb_cleaner_max_flush_time
64+
1
65+
select @@innodb_cleaner_max_lru_time;
66+
@@innodb_cleaner_max_lru_time
67+
1
68+
set global innodb_cleaner_max_lru_time=1;
69+
Warnings:
70+
Warning 1287 Using innodb_cleaner_max_lru_time is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
71+
select @@innodb_cleaner_max_lru_time;
72+
@@innodb_cleaner_max_lru_time
73+
1
74+
select @@innodb_corrupt_table_action;
75+
@@innodb_corrupt_table_action
76+
salvage
77+
set global innodb_corrupt_table_action=salvage;
78+
Warnings:
79+
Warning 1287 Using innodb_corrupt_table_action is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
80+
select @@innodb_corrupt_table_action;
81+
@@innodb_corrupt_table_action
82+
salvage
83+
select @@innodb_empty_free_list_algorithm;
84+
@@innodb_empty_free_list_algorithm
85+
BACKOFF
86+
set global innodb_empty_free_list_algorithm=BACKOFF;
87+
Warnings:
88+
Warning 1287 Using innodb_empty_free_list_algorithm is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
89+
select @@innodb_empty_free_list_algorithm;
90+
@@innodb_empty_free_list_algorithm
91+
BACKOFF
92+
select @@innodb_fake_changes;
93+
@@innodb_fake_changes
94+
1
95+
set global innodb_fake_changes=1;
96+
Warnings:
97+
Warning 1287 Using innodb_fake_changes is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
98+
select @@innodb_fake_changes;
99+
@@innodb_fake_changes
100+
1
101+
# @@innodb_file_io_threads is absent
102+
select @@innodb_foreground_preflush;
103+
@@innodb_foreground_preflush
104+
EXPONENTIAL_BACKOFF
105+
set global innodb_foreground_preflush=EXPONENTIAL_BACKOFF;
106+
Warnings:
107+
Warning 1287 Using innodb_foreground_preflush is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
108+
select @@innodb_foreground_preflush;
109+
@@innodb_foreground_preflush
110+
EXPONENTIAL_BACKOFF
111+
select @@innodb_kill_idle_transaction;
112+
@@innodb_kill_idle_transaction
113+
1
114+
set global innodb_kill_idle_transaction=1;
115+
Warnings:
116+
Warning 1287 Using innodb_kill_idle_transaction is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
117+
select @@innodb_kill_idle_transaction;
118+
@@innodb_kill_idle_transaction
119+
1
120+
select @@innodb_locking_fake_changes;
121+
@@innodb_locking_fake_changes
122+
1
123+
set global innodb_locking_fake_changes=1;
124+
Warnings:
125+
Warning 1287 Using innodb_locking_fake_changes is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
126+
select @@innodb_locking_fake_changes;
127+
@@innodb_locking_fake_changes
128+
1
129+
select @@innodb_log_arch_expire_sec;
130+
@@innodb_log_arch_expire_sec
131+
1
132+
set global innodb_log_arch_expire_sec=1;
133+
Warnings:
134+
Warning 1287 Using innodb_log_arch_expire_sec is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
135+
select @@innodb_log_arch_expire_sec;
136+
@@innodb_log_arch_expire_sec
137+
1
138+
select @@innodb_log_block_size;
139+
@@innodb_log_block_size
140+
16
141+
set global innodb_log_block_size= 8;
142+
ERROR HY000: Variable 'innodb_log_block_size' is a read only variable
143+
select @@innodb_log_checksum_algorithm, @@innodb_log_checksums;
144+
@@innodb_log_checksum_algorithm @@innodb_log_checksums
145+
STRICT_INNODB 1
146+
set global innodb_log_checksum_algorithm=NONE;
147+
Warnings:
148+
Warning 1287 Using innodb_log_checksum_algorithm is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
149+
select @@innodb_log_checksum_algorithm, @@innodb_log_checksums;
150+
@@innodb_log_checksum_algorithm @@innodb_log_checksums
151+
NONE 0
152+
set global innodb_log_checksum_algorithm=STRICT_INNODB;
153+
Warnings:
154+
Warning 1287 Using innodb_log_checksum_algorithm is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
155+
select @@innodb_log_checksum_algorithm, @@innodb_log_checksums;
156+
@@innodb_log_checksum_algorithm @@innodb_log_checksums
157+
STRICT_INNODB 1
158+
select @@innodb_max_bitmap_file_size;
159+
@@innodb_max_bitmap_file_size
160+
1
161+
set global innodb_max_bitmap_file_size=1;
162+
Warnings:
163+
Warning 1287 Using innodb_max_bitmap_file_size is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
164+
select @@innodb_max_bitmap_file_size;
165+
@@innodb_max_bitmap_file_size
166+
1
167+
select @@innodb_max_changed_pages;
168+
@@innodb_max_changed_pages
169+
1
170+
set global innodb_max_changed_pages=1;
171+
Warnings:
172+
Warning 1287 Using innodb_max_changed_pages is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
173+
select @@innodb_max_changed_pages;
174+
@@innodb_max_changed_pages
175+
1
176+
select @@innodb_mirrored_log_groups;
177+
@@innodb_mirrored_log_groups
178+
8
179+
set global innodb_mirrored_log_groups= 4;
180+
ERROR HY000: Variable 'innodb_mirrored_log_groups' is a read only variable
181+
select @@innodb_priority_cleaner;
182+
@@innodb_priority_cleaner
183+
1
184+
set global innodb_priority_cleaner=1;
185+
Warnings:
186+
Warning 1287 Using innodb_priority_cleaner is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
187+
select @@innodb_priority_cleaner;
188+
@@innodb_priority_cleaner
189+
1
190+
select @@innodb_priority_io;
191+
@@innodb_priority_io
192+
1
193+
set global innodb_priority_io=1;
194+
Warnings:
195+
Warning 1287 Using innodb_priority_io is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
196+
select @@innodb_priority_io;
197+
@@innodb_priority_io
198+
1
199+
select @@innodb_priority_master;
200+
@@innodb_priority_master
201+
1
202+
set global innodb_priority_master=1;
203+
Warnings:
204+
Warning 1287 Using innodb_priority_master is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
205+
select @@innodb_priority_master;
206+
@@innodb_priority_master
207+
1
208+
select @@innodb_priority_purge;
209+
@@innodb_priority_purge
210+
1
211+
set global innodb_priority_purge=1;
212+
Warnings:
213+
Warning 1287 Using innodb_priority_purge is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
214+
select @@innodb_priority_purge;
215+
@@innodb_priority_purge
216+
1
217+
select @@innodb_sched_priority_cleaner;
218+
@@innodb_sched_priority_cleaner
219+
16
220+
set global innodb_sched_priority_cleaner=8;
221+
Warnings:
222+
Warning 1287 Using innodb_sched_priority_cleaner is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
223+
select @@innodb_sched_priority_cleaner;
224+
@@innodb_sched_priority_cleaner
225+
16
226+
select @@innodb_sched_priority_io;
227+
@@innodb_sched_priority_io
228+
16
229+
set global innodb_sched_priority_io=8;
230+
Warnings:
231+
Warning 1287 Using innodb_sched_priority_io is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
232+
select @@innodb_sched_priority_io;
233+
@@innodb_sched_priority_io
234+
16
235+
select @@innodb_sched_priority_master;
236+
@@innodb_sched_priority_master
237+
16
238+
set global innodb_sched_priority_master=8;
239+
Warnings:
240+
Warning 1287 Using innodb_sched_priority_master is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
241+
select @@innodb_sched_priority_master;
242+
@@innodb_sched_priority_master
243+
16
244+
select @@innodb_sched_priority_purge;
245+
@@innodb_sched_priority_purge
246+
16
247+
set global innodb_sched_priority_purge=8;
248+
Warnings:
249+
Warning 1287 Using innodb_sched_priority_purge is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
250+
select @@innodb_sched_priority_purge;
251+
@@innodb_sched_priority_purge
252+
16
253+
select @@innodb_show_locks_held;
254+
@@innodb_show_locks_held
255+
16
256+
set global innodb_show_locks_held=8;
257+
Warnings:
258+
Warning 1287 Using innodb_show_locks_held is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
259+
select @@innodb_show_locks_held;
260+
@@innodb_show_locks_held
261+
16
262+
select @@innodb_show_verbose_locks;
263+
@@innodb_show_verbose_locks
264+
1
265+
set global innodb_show_verbose_locks=1;
266+
Warnings:
267+
Warning 1287 Using innodb_show_verbose_locks is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
268+
select @@innodb_show_verbose_locks;
269+
@@innodb_show_verbose_locks
270+
1
271+
select @@innodb_track_changed_pages;
272+
@@innodb_track_changed_pages
273+
1
274+
set global innodb_track_changed_pages=1;
275+
ERROR HY000: Variable 'innodb_track_changed_pages' is a read only variable
276+
select @@innodb_track_redo_log_now;
277+
@@innodb_track_redo_log_now
278+
1
279+
set global innodb_track_redo_log_now=1;
280+
Warnings:
281+
Warning 1287 Using innodb_track_redo_log_now is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
282+
select @@innodb_track_redo_log_now;
283+
@@innodb_track_redo_log_now
284+
1
285+
select @@innodb_use_global_flush_log_at_trx_commit;
286+
@@innodb_use_global_flush_log_at_trx_commit
287+
1
288+
set global innodb_use_global_flush_log_at_trx_commit=1;
289+
Warnings:
290+
Warning 1287 Using innodb_use_global_flush_log_at_trx_commit is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
291+
select @@innodb_use_global_flush_log_at_trx_commit;
292+
@@innodb_use_global_flush_log_at_trx_commit
293+
1
294+
select @@innodb_use_stacktrace;
295+
@@innodb_use_stacktrace
296+
1
297+
set global innodb_use_stacktrace=1;
298+
ERROR HY000: Variable 'innodb_use_stacktrace' is a read only variable
299+
select @@innodb_log_archive;
300+
@@innodb_log_archive
301+
1
302+
set global innodb_log_archive=1;
303+
Warnings:
304+
Warning 1287 Using innodb_log_archive is deprecated and the parameter may be removed in future releases. Ignoning the parameter.
305+
select @@innodb_log_archive;
306+
@@innodb_log_archive
307+
1
308+
select @@innodb_log_arch_dir;
309+
@@innodb_log_arch_dir
310+
ttt
311+
set global innodb_log_arch_dir="ttt";
312+
ERROR HY000: Variable 'innodb_log_arch_dir' is a read only variable
313+
FOUND 36 /Using [A-Za-z\-]* is deprecated and the parameter may be removed in future releases. Ignoning the parameter./ in mysqld.1.err
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
--innodb-adaptive-hash-index-partitions=16
2+
--innodb-buffer-pool-populate=1
3+
--innodb-cleaner-eviction-factor
4+
--innodb-cleaner-flush-chunk-size=16
5+
--innodb-cleaner_free_list_lwm=1
6+
--innodb-cleaner-lru-chunk-size=1
7+
--innodb-cleaner-lsn-age-factor=HIGH_CHECKPOINT
8+
--innodb-cleaner-max-flush-time=1
9+
--innodb-cleaner-max-lru-time=1
10+
--innodb-corrupt-table-action=salvage
11+
--innodb-empty-free-list-algorithm=BACKOFF
12+
--innodb-fake-changes
13+
--innodb-file-io-threads=16
14+
--innodb-foreground-preflush=EXPONENTIAL_BACKOFF
15+
--innodb-kill-idle-transaction=1
16+
--innodb-locking-fake-changes
17+
--innodb-log-arch-expire-sec=1
18+
--innodb-log-arch-dir='ttt'
19+
--innodb-log-archive
20+
--innodb-log-block-size=16
21+
--innodb-log_checksum_algorithm=STRICT_INNODB
22+
--innodb-max-bitmap-file-size=1
23+
--innodb-max-changed-pages=1
24+
--innodb-mirrored-log-groups=8
25+
--innodb-priority-cleaner
26+
--innodb-priority-io
27+
--innodb-priority-master
28+
--innodb-priority-purge
29+
--innodb-sched-priority-cleaner=16
30+
--innodb-sched-priority-io=16
31+
--innodb-sched-priority-master=16
32+
--innodb-sched-priority-purge=16
33+
--innodb-show-locks-held=16
34+
--innodb-show-verbose-locks=1
35+
--innodb-track-changed-pages
36+
--innodb-track-redo-log-now
37+
--innodb-use-global-flush-log-at-trx-commit
38+
--innodb-use-stacktrace

0 commit comments

Comments
 (0)