disk

package
v1.1.0-beta.0...-70f5218 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewGlobalTrcaker = memory.NewGlobalTracker

NewGlobalTrcaker creates a global disk tracker.

View Source
var NewTracker = memory.NewTracker

NewTracker creates a disk tracker.

  1. "label" is the label used in the usage string.
  2. "bytesLimit <= 0" means no limit.

Functions

func CheckAndCreateDir

func CheckAndCreateDir(path string) error

CheckAndCreateDir check whether the directory is existed. If not, then create it.

func CheckAndInitTempDir

func CheckAndInitTempDir() (err error)

CheckAndInitTempDir check whether the temp directory is existed. If not, initializes the temp directory.

func CleanUp

func CleanUp()

CleanUp releases the directory lock when exiting TiDB.

func InitializeTempDir

func InitializeTempDir() error

InitializeTempDir initializes the temp directory.

Types

type Tracker

type Tracker = memory.Tracker

Tracker is used to track the disk usage during query execution.

Jump to

Keyboard shortcuts

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