CRM-21835 Gracefully switch Log Table Engines if Archive is not avali… #11786
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.
…able
Overview
Since MariaDB 10.1 The archive engine is not automatically enabled. This can cause problems when enabling detailed logging as it will try to create the tables using the Archive Engine. Some users maybe able to enable the Archive Engine but for others especially on shared hosting this may not be available as an option. So lets gracefully fall over to INNODB.
Before
If you enable logging when the
ARCHIVE
engine is unavailable, it generates a fatal error.After
If you enable logging when the
ARCHIVE
engine is unavailable, it falls back to InnoDB.Comments
ping @eileenmcnaughton @totten @agileware . This was raised to me by Agileware and i think it makes sense to just gracefully handle it rather than try and get people to install the archive extension. This set up also keeps the status quo of if Archive is available use it.