inodedbtxloggc

package
v0.0.0-...-7ab6552 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GC

func GC(ctx context.Context, thresfinder UnneededTxIDThresholdFinder, logdeleter TransactionLogDeleter, dryrun bool) error

Types

type Task

type Task struct {
	ThresFinder UnneededTxIDThresholdFinder
	LogDeleter  TransactionLogDeleter
	DryRun      bool
}

func (*Task) Run

func (t *Task) Run(ctx context.Context) scheduler.Result

func (*Task) String

func (t *Task) String() string

type TransactionLogDeleter

type TransactionLogDeleter interface {
	DeleteTransactions(smallerThanID inodedb.TxID) error
}

type UnneededTxIDThresholdFinder

type UnneededTxIDThresholdFinder interface {
	FindUnneededTxIDThreshold() (inodedb.TxID, error)
}

Jump to

Keyboard shortcuts

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