resulthelper

package
v2.3.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TxRWSetIdxKeyPrefix   = 'r'
	TxRWSetIndexKeyPrefix = "ri"
	ResultDBSavepointKey  = "resultSavepointKey"
)

nolint

Variables

This section is empty.

Functions

func BuildKVBatch

func BuildKVBatch(batch *types.UpdateBatch, blockInfo *serialization.BlockWithSerializedInfo, logger protocol.Logger)

BuildKVBatch add next time @Description: @param batch @param blockInfo @param dbType @param logger @return *types.UpdateBatch

func ConstructTxRWSetIDKey

func ConstructTxRWSetIDKey(txId string) []byte

ConstructTxRWSetIDKey return byte array format []byte{'r',txId} @Description: @param txId @return []byte

func ConstructTxRWSetIndexKey

func ConstructTxRWSetIndexKey(txId string) []byte

ConstructTxRWSetIndexKey construct key format []byte{'r','i',txId} @Description: @param txId @return []byte

func GetTxRWSetFromKVDB

func GetTxRWSetFromKVDB(txId string, dbHandle protocol.DBHandle,
	cache *cache.StoreCacheMgr) (*commonPb.TxRWSet, error)

GetTxRWSetFromKVDB add next time @Description: @param txId @param dbHandle @param cache @return *commonPb.TxRWSet @return error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL