binloginfo

package
v0.0.0-...-40faf7d Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PumpClient binlog.PumpClient

PumpClient is the gRPC client to write binlog, it is opened on server start and never close, shared by all sessions.

Functions

func ClearBinlog

func ClearBinlog(ctx context.Context)

ClearBinlog clears binlog in the Context.

func GetPrewriteValue

func GetPrewriteValue(ctx context.Context, createIfNotExists bool) *binlog.PrewriteValue

GetPrewriteValue gets binlog prewrite value in the context.

func GetSchemaVersion

func GetSchemaVersion(ctx context.Context) int64

GetSchemaVersion gets schema version in the context.

func SetDDLBinlog

func SetDDLBinlog(txn kv.Transaction, jobID int64, ddlQuery string)

SetDDLBinlog sets DDL binlog in the kv.Transaction.

func SetSchemaVersion

func SetSchemaVersion(ctx context.Context, version int64)

SetSchemaVersion sets schema version to the context.

func WriteBinlog

func WriteBinlog(bin *binlog.Binlog, clusterID uint64) error

WriteBinlog writes a binlog to Pump.

Types

This section is empty.

Jump to

Keyboard shortcuts

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