Bug #81852 | Provide option to not allow client access during InnoDB recovery | ||
---|---|---|---|
Submitted: | 15 Jun 2016 5:56 | Modified: | 15 Jun 2016 8:25 |
Reporter: | Simon Mudd (OCA) | Email Updates: | |
Status: | Open | Impact on me: | |
Category: | MySQL Server | Severity: | S4 (Feature request) |
Version: | 5.6.27 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[15 Jun 2016 5:56]
Simon Mudd
[15 Jun 2016 6:09]
Simon Mudd
Note: I deliberately did not make this an InnoDB option as other storage engines would be affected too.
[15 Jun 2016 7:37]
Daniël van Eeden
This is basically what offline_mode does. https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_offline_mode But offline_mode on a master would probably cause the I/O Threads on slaves to fail?
[15 Jun 2016 7:39]
Daniël van Eeden
And for option c there is 'SET GLOBAL read_only=1'
[15 Jun 2016 8:25]
Simon Mudd
Yes, the options are there, but they're not automatic during recovery. So to rephrase: While mysqld is recovering (on startup) optionally put the server into: (i) offline mode, or (ii) read_only mode during this process.