myrocks needs extra initialization step during .frm opening

Registered by George Ormond Lorch III

myrocks handler needs an extra initialization step during .frm opening in sql/table.cc::open_binary_frm

MyRocks supports HA_PRIMARY_KEY_IN_READ_INDEX, i.e. ability to obtain PK value from an index read only for certain types of keys/key combinations. It does not know if it can support this flag until after the table definition has been parsed from the .frm and the key structures analysed. When used as a partitioned table, there is/was no opportunity for it to evaluate if the flag was supported. This patch adds a secondary handler initialization function that happens after a TABLE_SHARE key and field definitions have been read and parsed and extends the partition handler to forward the call to the underlying storage engine.

https://github.com/facebook/mysql-5.6/commit/c1f1f0b64eaecd132fc6ec21663faf0510afacaf : Index-only scans do not work for partitioned tables and extended key

https://jira.percona.com/browse/MYR-7

http://jenkins.percona.com/view/PS%205.6/job/percona-server-5.6-param/1454/
https://github.com/percona/percona-server/pull/1126

Blueprint information

Status:
Complete
Approver:
George Ormond Lorch III
Priority:
Medium
Drafter:
George Ormond Lorch III
Direction:
Approved
Assignee:
George Ormond Lorch III
Definition:
Approved
Series goal:
Accepted for 5.6
Implementation:
Implemented
Milestone target:
milestone icon 5.6.34-79.1
Started by
George Ormond Lorch III
Completed by
George Ormond Lorch III

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.