Skip to content

Commit cc37f24

Browse files
Sunny Bainsdahlerlend
authored andcommitted
BUG#30628872 - INNODB: SET MAX SIZE OF LOCK WAIT AND SYNC ARRAY TO 100K
This change is to side step the following two bugs. 1. BUG#30415637 2. BUG#30556036 A proper change to follow later. Approved-by: Kevin Lewis <[email protected]> (cherry picked from commit 311987c03fc21cdab1b1bc1c89c5ac62e2ec9518)
1 parent f3b41e5 commit cc37f24

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

storage/innobase/handler/ha_innodb.cc

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4495,26 +4495,7 @@ static int innodb_init_params() {
44954495
maximum number of threads that can wait in the 'srv_conc array' for
44964496
their time to enter InnoDB. */
44974497

4498-
srv_max_n_threads = 1 /* io_ibuf_thread */
4499-
+ 1 /* io_log_thread */
4500-
+ 1 /* lock_wait_timeout_thread */
4501-
+ 1 /* srv_error_monitor_thread */
4502-
+ 1 /* srv_monitor_thread */
4503-
+ 1 /* srv_master_thread */
4504-
+ 1 /* srv_purge_coordinator_thread */
4505-
+ 1 /* buf_dump_thread */
4506-
+ 1 /* dict_stats_thread */
4507-
+ 1 /* fts_optimize_thread */
4508-
+ 1 /* recv_writer_thread */
4509-
+ 1 /* trx_rollback_or_clean_all_recovered */
4510-
+ 128 /* added as margin, for use of
4511-
InnoDB Memcached etc. */
4512-
+ max_connections + srv_n_read_io_threads +
4513-
srv_n_write_io_threads + srv_n_purge_threads +
4514-
srv_n_page_cleaners
4515-
/* FTS Parallel Sort */
4516-
+
4517-
fts_sort_pll_degree * FTS_NUM_AUX_INDEX * max_connections;
4498+
srv_max_n_threads = 100 * 1024;
45184499

45194500
/* This is the first time univ_page_size is used.
45204501
It was initialized to 16k pages before srv_page_size was set */

0 commit comments

Comments
 (0)