-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
store/tikv: resolve storeType dependency #22854
Conversation
Signed-off-by: disksing <[email protected]>
Signed-off-by: disksing <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests |
kv/kv.go
Outdated
@@ -343,6 +343,7 @@ const ( | |||
) | |||
|
|||
// StoreType represents the type of a store. | |||
// Type enums should sync with store/tikv.StoreType. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not unify these two StoreType
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andylokandy I discover that the 2 storeType
s are actually not strict related. There is no need to keep them synced. (I even tried to change tikv.StoreType
to type string, it can still compile). So I removed the comments that declare they should be sync.
Signed-off-by: disksing <[email protected]>
LGTM |
/merge |
/run-all-tests |
@disksing merge failed. |
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@disksing merge failed. |
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
Signed-off-by: disksing [email protected]
What problem does this PR solve?
store/tikv
has dependencies onkv
andplacement
to distinguish store types.Part of #22513
What is changed and how it works?
What's Changed:
store/tikv
Check List
Tests
Release note