Improve tikv-dump to support mvcc decoding. #1077
Labels
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
status/discussion
Status: Under discussion or need discussion
status/proposal
Status: Still a proposal
In short, I propose to add a new flag 'mvcc' to dump mvcc encoded key-value pairs. All cf's key-values are encoded as following:
encodeBytes
. https://github.com/pingcap/tikv/blob/master/src/util/codec/bytes.rs#L31encode_u64_desc
. https://github.com/pingcap/tikv/blob/master/src/util/codec/number.rs#L76encode_compact_bytes
. https://github.com/pingcap/tikv/blob/master/src/util/codec/bytes.rs#L56encode_var_u64
. https://github.com/pingcap/tikv/blob/master/src/util/codec/number.rs#L92Usage example (dump a key's write cf):
Output (2 PUT records found):
The text was updated successfully, but these errors were encountered: