We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I found that now with V2 API, we will calculate the keyspace every time
func (c *codecV2) GetKeyspaceID() KeyspaceID { prefix := append([]byte{}, c.prefix...) prefix[0] = 0 return KeyspaceID(binary.BigEndian.Uint32(prefix)) }
https://github.com/tikv/client-go/blob/master/internal/apicodec/codec_v2.go#L99
Why do we do this? seem that we can cache the value of KeyspaceID in the codecV2 structure directly.
@sunxiaoguang
The text was updated successfully, but these errors were encountered:
sunxiaoguang
No branches or pull requests
I found that now with V2 API, we will calculate the keyspace every time
https://github.com/tikv/client-go/blob/master/internal/apicodec/codec_v2.go#L99
Why do we do this? seem that we can cache the value of KeyspaceID in the codecV2 structure directly.
@sunxiaoguang
The text was updated successfully, but these errors were encountered: