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

Add get_column_family_metadata() related structs and APIs #657

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yhchiang-sol
Copy link
Contributor

@yhchiang-sol yhchiang-sol commented Jul 17, 2022

What's in this PR

This PR adds get_column_family_metadata_cf() API based on rocksdb-10207
that returns the metadata of the specified column family that describes its level
structure.

get_column_family_metadata_cf() returns a ColumnFamilyMetaData, which
includes basic properties of the column family and a vector of LevelMetaData
that includes a vector of FileMetaData.

Test Plan

Add a new test that constructs a rocksdb instance with multiple levels and
verify the level structure using get_column_family_metadata_cf().

Temporarily put this PR as a draft as this PR requires a newer release of rocksdb.

@yhchiang-sol yhchiang-sol marked this pull request as draft July 17, 2022 05:54
@yhchiang-sol yhchiang-sol force-pushed the cf-meta branch 3 times, most recently from 1d165fd to fc2e43e Compare July 17, 2022 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant