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

[FLASH-298] Import DecodedTiKVKey and TableRowIDMinMax #218

Merged
merged 2 commits into from
Sep 4, 2019
Merged

[FLASH-298] Import DecodedTiKVKey and TableRowIDMinMax #218

merged 2 commits into from
Sep 4, 2019

Conversation

solotzg
Copy link
Contributor

@solotzg solotzg commented Sep 3, 2019

  • Implement DecodedTiKVKey to present decoded tikv key instead of std::string.

  • Implement TableRowIDMinMax to optimize min/max key for table record.

import DecodedTiKVKey
import TableRowIDMinMax to optimize min/max key for table id
@solotzg solotzg requested a review from innerr September 3, 2019 16:13
@@ -19,12 +19,13 @@ struct CFKeyHasher

struct RegionWriteCFDataTrait
{
static const std::string name;
Copy link
Contributor

@innerr innerr Sep 3, 2019

Choose a reason for hiding this comment

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

If my memories are not wrong, we could define static const std::string name = 'foobar' in .h, just work for static vars.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've test and this didn't work. std::string need constructor.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

name is a static variables of struct RegionWriteCFDataTrait, if we want to access it out of this struct, we must initialize it out of RegionWriteCFDataTrait.

Copy link
Contributor

@innerr innerr left a comment

Choose a reason for hiding this comment

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

LGTM

@solotzg
Copy link
Contributor Author

solotzg commented Sep 3, 2019

/run-integration-tests

1 similar comment
@solotzg
Copy link
Contributor Author

solotzg commented Sep 4, 2019

/run-integration-tests

@solotzg solotzg merged commit f970a94 into pingcap:master Sep 4, 2019
@solotzg solotzg deleted the pre-FLASH-298-0 branch September 4, 2019 04:17
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.

2 participants