filesystemhelper

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chown

func Chown(filename string, ch *clickhouse.ClickHouse, disks []clickhouse.Disk) error

Chown - set permission on file to clickhouse user This is necessary that the ClickHouse will be able to read parts files on restore

func CopyDataToDetached added in v1.3.1

func CopyDataToDetached(backupName string, backupTable metadata.TableMetadata, disks []clickhouse.Disk, tableDataPaths []string, ch *clickhouse.ClickHouse) error

CopyDataToDetached - copy partitions for specific table to detached folder

func CreatePartitionsToBackupMap

func CreatePartitionsToBackupMap(partitions []string) common.EmptyMap

func IsDuplicatedParts

func IsDuplicatedParts(part1, part2 string) error

func IsPartInPartition

func IsPartInPartition(partName string, partitionsBackupMap common.EmptyMap) bool

func Mkdir

func Mkdir(name string, ch *clickhouse.ClickHouse, disks []clickhouse.Disk) error

func MkdirAll

func MkdirAll(path string, ch *clickhouse.ClickHouse, disks []clickhouse.Disk) error

func MoveShadow

func MoveShadow(shadowPath, backupPartsPath string, partitionsBackupMap common.EmptyMap) ([]metadata.Part, int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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