Documentation ¶
Index ¶
- func CheckGCEnable(ctx sessionctx.Context) (enable bool, err error)
- func DisableGC(ctx sessionctx.Context) error
- func EnableGC(ctx sessionctx.Context) error
- func GetGCSafePoint(sctx sessionctx.Context) (uint64, error)
- func ValidateSnapshot(ctx sessionctx.Context, snapshotTS uint64) error
- func ValidateSnapshotWithGCSafePoint(snapshotTS, safePointTS uint64) error
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 ¶
ValidateSnapshotWithGCSafePoint checks that the newly set snapshot time is after GC safe point time.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.