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
7750cda1
Commit
7750cda1
authored
May 14, 2021
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup: Remove innodb_flush_method (use srv_file_flush_method)
parent
3a427c56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+8
-12
No files found.
storage/innobase/handler/ha_innodb.cc
View file @
7750cda1
...
...
@@ -187,8 +187,6 @@ static char* innobase_disable_monitor_counter;
static
char
*
innobase_reset_monitor_counter
;
static
char
*
innobase_reset_all_monitor_counter
;
static
ulong
innodb_flush_method
;
/* This variable can be set in the server configure file, specifying
stopword table to be used */
static
char
*
innobase_server_stopword_table
;
...
...
@@ -3591,12 +3589,12 @@ static int innodb_init_params()
Force O_DIRECT on Unixes (on Windows writes are always
unbuffered)
*/
switch
(
innodb
_flush_method
)
{
switch
(
srv_file
_flush_method
)
{
case
SRV_O_DIRECT
:
case
SRV_O_DIRECT_NO_FSYNC
:
break
;
default:
innodb
_flush_method
=
SRV_O_DIRECT
;
srv_file
_flush_method
=
SRV_O_DIRECT
;
fprintf
(
stderr
,
"InnoDB: using O_DIRECT due to atomic writes.
\n
"
);
}
}
...
...
@@ -3615,21 +3613,19 @@ static int innodb_init_params()
#endif
#ifndef _WIN32
ut_ad
(
innodb
_flush_method
<=
SRV_O_DIRECT_NO_FSYNC
);
ut_ad
(
srv_file
_flush_method
<=
SRV_O_DIRECT_NO_FSYNC
);
#else
switch
(
innodb
_flush_method
)
{
switch
(
srv_file
_flush_method
)
{
case
SRV_ALL_O_DIRECT_FSYNC
+
1
/* "async_unbuffered"="unbuffered" */
:
innodb
_flush_method
=
SRV_ALL_O_DIRECT_FSYNC
;
srv_file
_flush_method
=
SRV_ALL_O_DIRECT_FSYNC
;
break
;
case
SRV_ALL_O_DIRECT_FSYNC
+
2
/* "normal"="fsync" */
:
innodb
_flush_method
=
SRV_FSYNC
;
srv_file
_flush_method
=
SRV_FSYNC
;
break
;
default:
ut_ad
(
innodb
_flush_method
<=
SRV_ALL_O_DIRECT_FSYNC
);
ut_ad
(
srv_file
_flush_method
<=
SRV_ALL_O_DIRECT_FSYNC
);
}
#endif
srv_file_flush_method
=
srv_flush_t
(
innodb_flush_method
);
innodb_buffer_pool_size_init
();
srv_lock_table_size
=
5
*
(
srv_buf_pool_size
>>
srv_page_size_shift
);
...
...
@@ -18376,7 +18372,7 @@ static MYSQL_SYSVAR_ULONG(flush_log_at_trx_commit, srv_flush_log_at_trx_commit,
" guarantees in case of crash. 0 and 2 can be faster than 1 or 3."
,
NULL
,
NULL
,
1
,
0
,
3
,
0
);
static
MYSQL_SYSVAR_ENUM
(
flush_method
,
innodb
_flush_method
,
static
MYSQL_SYSVAR_ENUM
(
flush_method
,
srv_file
_flush_method
,
PLUGIN_VAR_RQCMDARG
|
PLUGIN_VAR_READONLY
,
"With which method to flush data."
,
NULL
,
NULL
,
IF_WIN
(
SRV_ALL_O_DIRECT_FSYNC
,
SRV_O_DIRECT
),
...
...
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