filesystemhelper

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chown

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

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

func HardlinkBackupPartsToStorage

func HardlinkBackupPartsToStorage(backupName string, backupTable metadata.TableMetadata, disks []clickhouse.Disk, diskMap map[string]string, tableDataPaths []string, ch *clickhouse.ClickHouse, toDetached bool) error

HardlinkBackupPartsToStorage - copy partitions for specific table to detached folder

func IsDuplicatedParts

func IsDuplicatedParts(part1, part2 string) error

func IsFileInPartition

func IsFileInPartition(disk, fileName string, partitionsBackupMap common.EmptyMap) bool

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 MoveShadowToBackup added in v2.5.0

func MoveShadowToBackup(shadowPath, backupPartsPath string, partitionsBackupMap common.EmptyMap, tableDiffFromRemote metadata.TableMetadata, disk clickhouse.Disk, version int) ([]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