gcutil

package
v3.1.0-fork Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckGCEnable

func CheckGCEnable(ctx sessionctx.Context) (enable bool, err error)

CheckGCEnable is use to check whether GC is enable.

func DisableGC

func DisableGC(ctx sessionctx.Context) error

DisableGC will disable GC enable variable.

func EnableGC

func EnableGC(ctx sessionctx.Context) error

EnableGC will enable GC enable variable.

func GetGCSafePoint

func GetGCSafePoint(ctx sessionctx.Context) (uint64, error)

GetGCSafePoint loads GC safe point time from mysql.tidb.

func ValidateSnapshot

func ValidateSnapshot(ctx sessionctx.Context, snapshotTS uint64) error

ValidateSnapshot checks that the newly set snapshot time is after GC safe point time.

func ValidateSnapshotWithGCSafePoint

func ValidateSnapshotWithGCSafePoint(snapshotTS, safePointTS uint64) error

ValidateSnapshotWithGCSafePoint checks that the newly set snapshot time is after GC safe point time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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