Skip to content
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

Merged
merged 1 commit into from
Jun 3, 2019

Conversation

mattwire
Copy link
Contributor

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 InnoDB ROW_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

@civibot
Copy link

civibot bot commented May 26, 2019

(Standard links)

@seamuslee001
Copy link
Contributor

@pfigel
Copy link
Contributor

pfigel commented May 26, 2019

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?

@mattwire
Copy link
Contributor Author

mattwire commented Jun 1, 2019

@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.

Copy link
Contributor

@pfigel pfigel left a 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
    • (r-explain) PASS
    • (r-user) PASS: No change in default behaviour - hidden behind new parameter with appropriate docs.
    • (r-doc) PASS
    • (r-run) PASS: Confirmed engine config is changed with updateChangedEngineConfig=1 and not changed otherwise.
  • Developer standards
    • (r-tech) PASS: Minor (useful) change in return value, unlikely to have ecosystem impact.
    • (r-code) PASS
    • (r-maint) PASS
    • (r-test) PASS

Copy link
Contributor

@pfigel pfigel left a 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.

@mattwire mattwire added the merge ready PR will be merged after a few days if there are no objections label Jun 2, 2019
@monishdeb
Copy link
Member

@mattwire @pfigel is there anything remaining or I can merged it given that @pfigel has already reviewed and approved it?

@mattwire
Copy link
Contributor Author

mattwire commented Jun 3, 2019

@monishdeb I'm happy!

@monishdeb
Copy link
Member

Great .. Let us wait for @pfigel reply and I'll then merge this PR after his approval.

@pfigel
Copy link
Contributor

pfigel commented Jun 3, 2019

@monishdeb I'm happy with this!

@monishdeb monishdeb merged commit d7da878 into civicrm:master Jun 3, 2019
@monishdeb
Copy link
Member

Merged. Thanks guys for all your effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
master merge ready PR will be merged after a few days if there are no objections
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants