Skip to content

Commit

Permalink
maintain and add testcase for cf params, ref tikv#424
Browse files Browse the repository at this point in the history
Signed-off-by: joccau <[email protected]>
  • Loading branch information
joccau committed Feb 20, 2022
1 parent eb8617f commit 48fcc51
Show file tree
Hide file tree
Showing 4 changed files with 223 additions and 75 deletions.
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(key []byte, cf string) []byte
RawBatchGet(keys [][]byte, cf string) [][]byte
RawScan(startKey, endKey []byte, limit int, cf string) []Pair // Scan the range of [startKey, endKey)
RawReverseScan(startKey, endKey []byte, limit int, cf string) []Pair // Scan the range of [endKey, startKey)
RawPut(key, value []byte, cf string)
RawBatchPut(keys, values [][]byte, cf string)
RawDelete(key []byte, cf string)
RawBatchDelete(keys [][]byte, cf string)
RawDeleteRange(startKey, endKey []byte, cf string)
}

// MVCCDebugger is for debugging.
Expand Down
Loading

0 comments on commit 48fcc51

Please sign in to comment.