facebook / mysql-5.6

Facebook's branch of the Oracle MySQL database. This includes MyRocks.
http://myrocks.io
Other
2.48k stars 712 forks source link

implement handler API table_exists_in_engine for myrocks #1321

Closed luqun closed 1 year ago

luqun commented 1 year ago

Summary: During Data Dictioanry(DD) upgrade or restart, mysql should decide which SE(Storage Engine) contains actual DD tables if multiple SEs can be DDSE.

Currently MyRocks still have its own private data dictionary, which contains table name->table_def mapping. also these private data dictionary is initialized during plugin initialization. Thus implements handler API table_exists_in_engine to check whether a table exists in myrocks internal data dictionary.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

facebook-github-bot commented 1 year ago

@luqun has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot commented 1 year ago

@luqun has updated the pull request. You must reimport the pull request before landing.

facebook-github-bot commented 1 year ago

@luqun has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot commented 1 year ago

@luqun has updated the pull request. You must reimport the pull request before landing.