-
-
Notifications
You must be signed in to change notification settings - Fork 814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow updating ENGINE_CONFIG for System.updatelogtables #14348
Conversation
(Standard links)
|
I'm wondering if we really need a new API parameter or if just checking for a difference is good enough. Seems like it would be a sane default behaviour, unless we have good reason to be more conservative. Thoughts? |
a1a601c
to
dd05020
Compare
@pfigel I think it makes sense to be conservative (and add the param) when we first add it, just in case it should cause any problems. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mattwire LGTM!
- General standards
- Developer standards
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, noticed the test failure was already resolved, so definitely LGTM now.
@monishdeb I'm happy! |
Great .. Let us wait for @pfigel reply and I'll then merge this PR after his approval. |
@monishdeb I'm happy with this! |
Merged. Thanks guys for all your effort. |
Overview
Allow you to update the ENGINE_CONFIG via System.updatelogtables if you are not changing the actual storage engine.
I needed to go from InnoDB
ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4
to InnoDBROW_FORMAT=DYNAMIC
and you can't do it via this API function without changing the engine too.Also return the number of tables we updated as a result instead of "1" in the API call.
Before
Cannot modify SQL engine config for log tables.
After
Can modify SQL engine config for log tables.
Technical Details
Just follows the same principal as existing code. Enabled via parameter so no change by default.
Comments
@seamuslee001 @mfb @pfigel