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

CRM-15601, CRM-19027 - Fix regression in MyISAM DB check #8930

Merged
merged 1 commit into from
Sep 22, 2016

Conversation

totten
Copy link
Member

@totten totten commented Aug 24, 2016

3fa9688 (4.7.10) introduced a subtle break in how it skips temp tables:

  • (Old) strpos($dao->Name, '_temp') !== FALSE
  • (New) TABLE_NAME NOT LIKE '%temp'

This is relevant when a random suffix is appended to the table name.

I don't know the performance issue being addressed by CRM-19027. If there's an
issue with this hurting indexes, then maybe the check should be done in PHP
again? Alternatively, maybe we should patch all the code which makes temp
tables to enforce ENGINE=InnoDB?


3fa9688 introduced a subtle break in how it skips temp tables:

 * (Old) `strpos($dao->Name, '_temp') !== FALSE`
 * (New) `TABLE_NAME NOT LIKE '%temp'`

This is relevant when the table name is appended with a randomized suffix.

I don't the performance issue being addressed by CRM-19027.  If there's an
issue with this hurting indexes, then maybe the check should be done in PHP
again? Alternatively, maybe we should patch all the code which makes temp
tables to enforce `ENGINE=InnoDB`?
@totten
Copy link
Member Author

totten commented Aug 24, 2016

@eileenmcnaughton , you may be interested since this is a follow up to 3fa9688.

@totten totten changed the title CRM-15601, CRM-19027 - Fix MyISAM DB check CRM-15601, CRM-19027 - Fix regression in MyISAM DB check Aug 24, 2016
@seamuslee001
Copy link
Contributor

Jenkins re test this please

@seamuslee001
Copy link
Contributor

I think this is safe to merge as there is a test associated with it

@totten totten merged commit 58de6a9 into civicrm:master Sep 22, 2016
@totten
Copy link
Member Author

totten commented Sep 22, 2016

You, sir, are a scholar and a gentleman.

@totten totten deleted the master-isam-check branch December 6, 2016 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants