gcutil

package
v7.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 9 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(sctx 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