mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 03:17:20 +02:00
Make innodb_flush_log_at_trx_commit a settable global variable.
sql/ha_innodb.cc: Remove innobase_flush_log_at_trx_commit (set srv_flush_log_at_trx_commit directly). sql/ha_innodb.h: Remove innobase_flush_log_at_trx_commit. Declare srv_flush_log_at_trx_commit. sql/mysqld.cc: Bypass the innobase_flush_log_at_trx_commit variable. storage/innobase/include/srv0srv.h: Change the type of srv_flush_log_at_trx_commit. storage/innobase/srv/srv0srv.c: Change the type of srv_flush_log_at_trx_commit.
This commit is contained in:
parent
605871f5d5
commit
7d43d6fdd6
6 changed files with 12 additions and 9 deletions
|
|
@ -97,6 +97,7 @@ extern ulong srv_n_free_tickets_to_enter;
|
|||
extern ulong srv_thread_sleep_delay;
|
||||
extern ulong srv_thread_concurrency;
|
||||
extern ulong srv_commit_concurrency;
|
||||
extern ulong srv_flush_log_at_trx_commit;
|
||||
}
|
||||
|
||||
/* WITH_NDBCLUSTER_STORAGE_ENGINE */
|
||||
|
|
@ -517,6 +518,9 @@ sys_var_long_ptr sys_innodb_thread_concurrency("innodb_thread_concurrency",
|
|||
&srv_thread_concurrency);
|
||||
sys_var_long_ptr sys_innodb_commit_concurrency("innodb_commit_concurrency",
|
||||
&srv_commit_concurrency);
|
||||
sys_var_long_ptr sys_innodb_flush_log_at_trx_commit(
|
||||
"innodb_flush_log_at_trx_commit",
|
||||
&srv_flush_log_at_trx_commit);
|
||||
|
||||
/* Condition pushdown to storage engine */
|
||||
sys_var_thd_bool
|
||||
|
|
@ -838,7 +842,6 @@ SHOW_VAR init_vars[]= {
|
|||
{sys_innodb_fast_shutdown.name,(char*) &sys_innodb_fast_shutdown, SHOW_SYS},
|
||||
{"innodb_file_io_threads", (char*) &innobase_file_io_threads, SHOW_LONG },
|
||||
{"innodb_file_per_table", (char*) &innobase_file_per_table, SHOW_MY_BOOL},
|
||||
{"innodb_flush_log_at_trx_commit", (char*) &innobase_flush_log_at_trx_commit, SHOW_INT},
|
||||
{"innodb_flush_method", (char*) &innobase_unix_file_flush_method, SHOW_CHAR_PTR},
|
||||
{"innodb_force_recovery", (char*) &innobase_force_recovery, SHOW_LONG },
|
||||
{"innodb_lock_wait_timeout", (char*) &innobase_lock_wait_timeout, SHOW_LONG },
|
||||
|
|
@ -858,6 +861,7 @@ SHOW_VAR init_vars[]= {
|
|||
{sys_innodb_table_locks.name, (char*) &sys_innodb_table_locks, SHOW_SYS},
|
||||
{sys_innodb_thread_concurrency.name, (char*) &sys_innodb_thread_concurrency, SHOW_SYS},
|
||||
{sys_innodb_thread_sleep_delay.name, (char*) &sys_innodb_thread_sleep_delay, SHOW_SYS},
|
||||
{sys_innodb_flush_log_at_trx_commit.name, (char*) &sys_innodb_flush_log_at_trx_commit, SHOW_SYS},
|
||||
{sys_interactive_timeout.name,(char*) &sys_interactive_timeout, SHOW_SYS},
|
||||
{sys_join_buffer_size.name, (char*) &sys_join_buffer_size, SHOW_SYS},
|
||||
{sys_key_buffer_size.name, (char*) &sys_key_buffer_size, SHOW_SYS},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue