Skip to content
This repository was archived by the owner on Mar 1, 2026. It is now read-only.

properties_collector: (un)materialize: add missing m_name#1213

Open
rockeet wants to merge 2 commits into
facebook:fb-mysql-8.0.28from
rockeet:properties_collector.materialize.add.m_name
Open

properties_collector: (un)materialize: add missing m_name#1213
rockeet wants to merge 2 commits into
facebook:fb-mysql-8.0.28from
rockeet:properties_collector.materialize.add.m_name

Conversation

@rockeet

@rockeet rockeet commented Aug 15, 2022

Copy link
Copy Markdown
Contributor

This PR bump stats version to INDEX_STATS_VERSION_WITH_NAME = 3 for added m_name.

use highest bit of m_rows for m_name existing flag, this is safe,
because m_rows is 64 bits, m_rows will never reach 64 bits limit.
@yoshinorim

Copy link
Copy Markdown
Contributor

Could you elaborate more about why it is necessary to store index names in SST files? Index name is defined in MySQL data dictionary, so MyRocks can extract index names, map between internal index ids and index names when opening tables.

@rockeet

rockeet commented Aug 17, 2022

Copy link
Copy Markdown
Contributor Author

We have an visualization tool which can view structures inside an SST file, by this tool we found name is missing, then we added name in (un)materialize.

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

3 participants