MDEV-36301 SET GLOBAL innodb_log_file_disabled etc. #4014
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
innodb_log_file_disabled
: A new Boolean parameter, defaultOFF
. When setON
, dummy log writes will take place and InnoDB will be crash-unsafe. (This has not been properly implemented yet.)log_t::buf_size_requested
: A new data member, separate frombuf_size
, to reflectinnodb_log_buffer_size
. Wheninnodb_log_file_disabled=ON
, we may switch to use a dummy buffer with alog_sys.buf_size
that is much smaller.Release Notes
TBD
How can this PR be tested?
TODO: modify the automated test suite to verify that the PR causes MariaDB to behave as intended.
Basing the PR against the correct MariaDB version
main
branch.This is a new feature. To simplify fixing any unrelated bugs that are found during testing, this is based in the oldest maintained branch where
log_sys
had been significantly refactored (last in #3925).PR quality check