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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
6234dd64
Commit
6234dd64
authored
Jan 19, 2006
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port r146 from branches/5.0:
Make innodb_flush_log_at_trx_commit a settable global variable.
parent
34f1d3e6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
6 deletions
+4
-6
handler/ha_innodb.cc
handler/ha_innodb.cc
+1
-3
handler/ha_innodb.h
handler/ha_innodb.h
+1
-1
include/srv0srv.h
include/srv0srv.h
+1
-1
srv/srv0srv.c
srv/srv0srv.c
+1
-1
No files found.
handler/ha_innodb.cc
View file @
6234dd64
...
...
@@ -164,7 +164,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
;
...
...
@@ -1362,7 +1361,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. */
...
...
@@ -1837,7 +1835,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
);
}
...
...
handler/ha_innodb.h
View file @
6234dd64
...
...
@@ -208,7 +208,6 @@ class ha_innobase: public handler
};
extern
struct
show_var_st
innodb_status_variables
[];
extern
uint
innobase_flush_log_at_trx_commit
;
extern
ulong
innobase_fast_shutdown
;
extern
ulong
innobase_large_page_size
;
extern
long
innobase_mirrored_log_groups
,
innobase_log_files_in_group
;
...
...
@@ -244,6 +243,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
;
}
bool
innobase_init
(
void
);
...
...
include/srv0srv.h
View file @
6234dd64
...
...
@@ -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 */
...
...
srv/srv0srv.c
View file @
6234dd64
...
...
@@ -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
...
...
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