mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Applied patch recieved from Marko:
Make innodb_flush_log_at_trx_commit a settable global variable. innobase/include/srv0srv.h: Change the type of srv_flush_log_at_trx_commit. innobase/srv/srv0srv.c: Change the type of srv_flush_log_at_trx_commit. 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. (Set srv_flush_log_at_trx_commit directly). sql/mysqld.cc: Bypass the variable innobase innobase_flush_log_at_trx_commit. sql/set_var.cc: Make innodb_flush_log_at_trx_commit a settable global variable.
This commit is contained in:
parent
596666f74a
commit
74f499fade
6 changed files with 11 additions and 9 deletions
|
|
@ -167,7 +167,6 @@ char* innobase_unix_file_flush_method = NULL;
|
|||
/* Below we have boolean-valued start-up parameters, and their default
|
||||
values */
|
||||
|
||||
uint innobase_flush_log_at_trx_commit = 1;
|
||||
ulong innobase_fast_shutdown = 1;
|
||||
my_bool innobase_log_archive = FALSE;/* unused */
|
||||
my_bool innobase_use_doublewrite = TRUE;
|
||||
|
|
@ -1341,7 +1340,6 @@ innobase_init(void)
|
|||
srv_log_archive_on = (ulint) innobase_log_archive;
|
||||
#endif /* UNIV_LOG_ARCHIVE */
|
||||
srv_log_buffer_size = (ulint) innobase_log_buffer_size;
|
||||
srv_flush_log_at_trx_commit = (ulint) innobase_flush_log_at_trx_commit;
|
||||
|
||||
/* We set srv_pool_size here in units of 1 kB. InnoDB internally
|
||||
changes the value so that it becomes the number of database pages. */
|
||||
|
|
@ -1816,7 +1814,7 @@ innobase_commit_complete(
|
|||
|
||||
trx->active_trans = 0;
|
||||
|
||||
if (srv_flush_log_at_trx_commit == 0) {
|
||||
if (UNIV_UNLIKELY(srv_flush_log_at_trx_commit == 0)) {
|
||||
|
||||
return(0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue