Done
Details
Assignee
UnassignedUnassignedReporter
lpjirasynclpjirasync(Deactivated)Labels
Needs Review
YesTime tracking
7h 40m loggedComponents
Fix versions
Priority
High
Details
Details
Assignee
Unassigned
UnassignedReporter
lpjirasync
lpjirasync(Deactivated)Labels
Needs Review
Yes
Time tracking
7h 40m logged
Components
Fix versions
Priority
Smart Checklist
Smart Checklist
Smart Checklist
Created January 21, 2018 at 4:00 PM
Updated March 6, 2024 at 3:09 PM
Resolved March 24, 2022 at 12:08 PM
**Reported in Launchpad by Jaime Crespo last update 01-08-2017 06:48:14
This and the same section on 5.5 is poorly written and has some documentation bugs:
http://www.percona.com/doc/percona-server/5.6/scalability/innodb_io.html#innodb_use_global_flush_log_at_trx_commit
In summary:
The feature doc is difficult to understand, and overuses "GLOBAL" when it means "session as if it was set globally"
I think it has some erroneous information: wrong quoted example and the session variable can always be set, but (hopefully) it will have no effect
The feature is not documented in any other place, and it requires further discussion than simple parameters settings
I have written an alternative version (please check validity) to at least change the current information:
---------------
This variable is used to enable or disable the effect of the per session value of innodb_flush_log_at_trx_commit.
If the global variable innodb_use_global_flush_log_at_trx_commit is set to 1 (True), the session will use always use the current global value of innodb_flush_log_at_trx_commit. This is the default value.
Under this mode, changing the session variable for innodb_flush_log_at_trx_commit will have no effect for upstream compatibility.
If the global variable innodb_use_global_flush_log_at_trx_commit is set to 0 (False), the user can modify the MySQL commit durability per session, using:
SET SESSION innodb_flush_log_at_trx_commit=N
This change will only affect the transactions in the session where it has changed, while the rest will keep the global innodb_flush_log_at_trx_commit value unless similarly changed.