tidb: github.com/pingcap/tidb/util/gcutil Index | Files

package gcutil

import "github.com/pingcap/tidb/util/gcutil"

Index

Package Files

gcutil.go

func CheckGCEnable Uses

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

CheckGCEnable is use to check whether GC is enable.

func DisableGC Uses

func DisableGC(ctx sessionctx.Context) error

DisableGC will disable GC enable variable.

func EnableGC Uses

func EnableGC(ctx sessionctx.Context) error

EnableGC will enable GC enable variable.

func GetGCSafePoint Uses

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

GetGCSafePoint loads GC safe point time from mysql.tidb.

func ValidateSnapshot Uses

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

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

func ValidateSnapshotWithGCSafePoint Uses

func ValidateSnapshotWithGCSafePoint(snapshotTS, safePointTS uint64) error

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

Package gcutil imports 7 packages (graph) and is imported by 6 packages. Updated 2019-09-22. Refresh now. Tools for package owners.