Beispiel #1
0
func decodeAbortCacheMVCCKey(
	encKey engine.MVCCKey, dest []byte,
) (*uuid.UUID, error) {
	if encKey.IsValue() {
		return nil, util.Errorf("key %s is not a raw MVCC value", encKey)
	}
	return keys.DecodeAbortCacheKey(encKey.Key, dest)
}
Beispiel #2
0
func decodeSequenceCacheMVCCKey(encKey engine.MVCCKey, dest []byte) ([]byte, uint32, uint32, error) {
	if encKey.IsValue() {
		return nil, 0, 0, util.Errorf("key %s is not a raw MVCC value", encKey)
	}
	return decodeSequenceCacheKey(encKey.Key, dest)
}