restore

package
v1.7.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DefaultBatchWriteRowCount = 200

Variables

This section is empty.

Functions

func GetAutoIncrementPkIndex added in v1.7.5

func GetAutoIncrementPkIndex(meta *tablestore.TableMeta) int

func ShouldSleep

func ShouldSleep(err error) bool

ShouldSleep Provided for HBR use

Types

type BinaryRecordReplayRequest

type BinaryRecordReplayRequest struct {
	Record []byte
	//stream record end timestamp, if the record exceeds this timestamp, it won't be replayed.
	//when timestamp is 0, all records will be replayed.
	Timestamp            int64
	TableName            string
	DiscardDataVersion   bool //whether to discard data version
	AutoIncrementPKIndex int  //The index of the autoIncrement pk column
	//whether the server needs to regenerate the autoIncrement column
	ReGenerateAutoIncrementPK bool
}

type BinaryRecordReplayResponse

type BinaryRecordReplayResponse struct {
	RecordRestoreCount int
	HasTimeoutRecord   bool
	ResponseInfo
}

type RecordReplayRequest

type RecordReplayRequest struct {
	Record []*tunnel.Record
	//stream record end timestamp, if the record exceeds this timestamp, it won't be replayed.
	//when timestamp is 0, all records will be replayed.
	Timestamp            int64
	TableName            string
	DiscardDataVersion   bool //whether to discard data version
	AutoIncrementPKIndex int  //the index of the autoIncrement pk column
	//whether the server needs to regenerate the autoIncrement column
	ReGenerateAutoIncrementPK bool
}

type RecordReplayResponse

type RecordReplayResponse struct {
	RecordRestoreCount int
	HasTimeoutRecord   bool //whether to include record that exceeds timestamp in recordReplayRequest
	ResponseInfo
}

type ResponseInfo

type ResponseInfo struct {
	RequestId string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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