Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
af9d6bcf
Commit
af9d6bcf
authored
Jan 18, 2006
by
aivanov@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Applied patch recieved from Marko:
Make innodb_flush_log_at_trx_commit a settable global variable.
parent
5e69a370
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
9 deletions
+11
-9
innobase/include/srv0srv.h
innobase/include/srv0srv.h
+1
-1
innobase/srv/srv0srv.c
innobase/srv/srv0srv.c
+1
-1
sql/ha_innodb.cc
sql/ha_innodb.cc
+1
-3
sql/ha_innodb.h
sql/ha_innodb.h
+1
-1
sql/mysqld.cc
sql/mysqld.cc
+2
-2
sql/set_var.cc
sql/set_var.cc
+5
-1
No files found.
innobase/include/srv0srv.h
View file @
af9d6bcf
...
...
@@ -77,7 +77,7 @@ extern ulint srv_n_log_groups;
extern
ulint
srv_n_log_files
;
extern
ulint
srv_log_file_size
;
extern
ulint
srv_log_buffer_size
;
extern
ul
int
srv_flush_log_at_trx_commit
;
extern
ul
ong
srv_flush_log_at_trx_commit
;
extern
byte
srv_latin1_ordering
[
256
];
/* The sort order table of the latin1
character set */
...
...
innobase/srv/srv0srv.c
View file @
af9d6bcf
...
...
@@ -113,7 +113,7 @@ ulint srv_n_log_groups = ULINT_MAX;
ulint
srv_n_log_files
=
ULINT_MAX
;
ulint
srv_log_file_size
=
ULINT_MAX
;
/* size in database pages */
ulint
srv_log_buffer_size
=
ULINT_MAX
;
/* size in database pages */
ul
int
srv_flush_log_at_trx_commit
=
1
;
ul
ong
srv_flush_log_at_trx_commit
=
1
;
byte
srv_latin1_ordering
[
256
]
/* The sort order table of the latin1
character set. The following table is
...
...
sql/ha_innodb.cc
View file @
af9d6bcf
...
...
@@ -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
);
}
...
...
sql/ha_innodb.h
View file @
af9d6bcf
...
...
@@ -200,7 +200,6 @@ class ha_innobase: public handler
extern
struct
show_var_st
innodb_status_variables
[];
extern
uint
innobase_init_flags
,
innobase_lock_type
;
extern
uint
innobase_flush_log_at_trx_commit
;
extern
ulong
innobase_cache_size
,
innobase_fast_shutdown
;
extern
ulong
innobase_large_page_size
;
extern
char
*
innobase_home
,
*
innobase_tmpdir
,
*
innobase_logdir
;
...
...
@@ -238,6 +237,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
;
}
extern
TYPELIB
innobase_lock_typelib
;
...
...
sql/mysqld.cc
View file @
af9d6bcf
...
...
@@ -4823,8 +4823,8 @@ Disable with --skip-innodb-doublewrite.", (gptr*) &innobase_use_doublewrite,
(
gptr
*
)
&
innobase_file_per_table
,
0
,
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"innodb_flush_log_at_trx_commit"
,
OPT_INNODB_FLUSH_LOG_AT_TRX_COMMIT
,
"Set to 0 (write and flush once per second), 1 (write and flush at each commit) or 2 (write at commit, flush once per second)."
,
(
gptr
*
)
&
innobase
_flush_log_at_trx_commit
,
(
gptr
*
)
&
innobase
_flush_log_at_trx_commit
,
(
gptr
*
)
&
srv
_flush_log_at_trx_commit
,
(
gptr
*
)
&
srv
_flush_log_at_trx_commit
,
0
,
GET_UINT
,
OPT_ARG
,
1
,
0
,
2
,
0
,
0
,
0
},
{
"innodb_flush_method"
,
OPT_INNODB_FLUSH_METHOD
,
"With which method to flush data."
,
(
gptr
*
)
&
innobase_unix_file_flush_method
,
...
...
sql/set_var.cc
View file @
af9d6bcf
...
...
@@ -422,6 +422,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
);
#endif
/* Condition pushdown to storage engine */
...
...
@@ -726,6 +729,7 @@ sys_var *sys_variables[]=
&
sys_innodb_thread_sleep_delay
,
&
sys_innodb_thread_concurrency
,
&
sys_innodb_commit_concurrency
,
&
sys_innodb_flush_log_at_trx_commit
,
#endif
&
sys_trust_routine_creators
,
&
sys_trust_function_creators
,
...
...
@@ -831,7 +835,6 @@ struct show_var_st 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
},
...
...
@@ -851,6 +854,7 @@ struct show_var_st 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
},
#endif
{
sys_interactive_timeout
.
name
,(
char
*
)
&
sys_interactive_timeout
,
SHOW_SYS
},
{
sys_join_buffer_size
.
name
,
(
char
*
)
&
sys_join_buffer_size
,
SHOW_SYS
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment