MySQLOnRocksDB/mysql-5.6
forked from facebook/mysql-5.6

Loading…
Store and update maximum index id into data dictionary #95
Closed
yoshinorim opened this Issue
· 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When a new is created, MyRocks assigns new index id "current maximum index id + 1". Current maximum index id is currently not persisted into data dictionary, but calculated by scanning two data dictionaries -- Table Name => internal index id mappings and Ongoing drop index entry. This may introduce a bug of assigning duplicate index, especially when introducing new data dictionary format in the future.
This task is to create another data dictionary to store and update maximum index id. The id should be referenced and updated when new index is created.