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 a columnFamily feature for client-go when use rawput in tikv #425

Merged
merged 9 commits into from
Mar 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/locate/region_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -2220,7 +2220,7 @@ func createKVHealthClient(ctx context.Context, addr string) (*grpc.ClientConn, h

cfg := config.GetGlobalConfig()

opt := grpc.WithInsecure()
opt := grpc.WithInsecure() //nolint
if len(cfg.Security.ClusterSSLCA) != 0 {
tlsConfig, err := cfg.Security.ToTLSConfig()
if err != nil {
Expand Down
18 changes: 9 additions & 9 deletions internal/mockstore/mocktikv/mvcc.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,15 +286,15 @@ type MVCCStore interface {

// RawKV is a key-value storage. MVCCStore can be implemented upon it with timestamp encoded into key.
type RawKV interface {
RawGet(key []byte) []byte
RawBatchGet(keys [][]byte) [][]byte
RawScan(startKey, endKey []byte, limit int) []Pair // Scan the range of [startKey, endKey)
RawReverseScan(startKey, endKey []byte, limit int) []Pair // Scan the range of [endKey, startKey)
RawPut(key, value []byte)
RawBatchPut(keys, values [][]byte)
RawDelete(key []byte)
RawBatchDelete(keys [][]byte)
RawDeleteRange(startKey, endKey []byte)
RawGet(cf string, key []byte) []byte
RawBatchGet(cf string, keys [][]byte) [][]byte
RawScan(cf string, startKey, endKey []byte, limit int) []Pair // Scan the range of [startKey, endKey)
RawReverseScan(cf string, startKey, endKey []byte, limit int) []Pair // Scan the range of [endKey, startKey)
RawPut(cf string, key, value []byte)
RawBatchPut(cf string, keys, values [][]byte)
RawDelete(cf string, key []byte)
RawBatchDelete(cf string, keys [][]byte)
RawDeleteRange(cf string, startKey, endKey []byte)
}

// MVCCDebugger is for debugging.
Expand Down
Loading