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

Rename internal macro ENABLE_NEW_ENCODING to METADATA_ENCODING_VERSION #1408

Merged
merged 2 commits into from
Apr 29, 2023

Conversation

PragmaTwice
Copy link
Member

@PragmaTwice PragmaTwice commented Apr 29, 2023

As described in the document, KVROCKS_ENCODING_VERSION seems to be a more scalable name than ENABLE_NEW_ENCODING, since the NEW encoding can become an OLD encoding, but the encoding version can be a definite number.

BTW, I move two test file from cppunit/types to cppunit/, since they are both not related to types.

@PragmaTwice PragmaTwice requested review from git-hulk and torwig April 29, 2023 07:25
tisonkun
tisonkun previously approved these changes Apr 29, 2023
Copy link
Member

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@mapleFU
Copy link
Member

mapleFU commented Apr 29, 2023

Seems ok, RocksDB also use way like that https://rocksdb.org/blog/2019/03/08/format-version-4.html
Should we mark extract for "metadata encoding version"? Or just "encoding version" is ok?

@PragmaTwice
Copy link
Member Author

Seems ok, RocksDB also use way like that https://rocksdb.org/blog/2019/03/08/format-version-4.html Should we mark extract for "metadata encoding version"? Or just "encoding version" is ok?

Done.

@PragmaTwice PragmaTwice changed the title Rename internal macro ENABLE_NEW_ENCODING to KVROCKS_ENCODING_VERSION Rename internal macro ENABLE_NEW_ENCODING to METADATA_ENCODING_VERSION Apr 29, 2023
@PragmaTwice PragmaTwice requested a review from tisonkun April 29, 2023 10:07
@PragmaTwice PragmaTwice merged commit 628fc2d into apache:unstable Apr 29, 2023
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.

4 participants