retire

package
v0.0.0-...-9e054ec Latest Latest
Warning

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

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

Documentation

Overview

Package retire contains a utility for removing old mutations.

Index

Constants

This section is empty.

Variables

Set is used by Wire.

Functions

This section is empty.

Types

type Retire

type Retire struct {
	// contains filtered or unexported fields
}

Retire implements a utility process for removing old mutations.

func ProvideRetire

func ProvideRetire(cfg *sequencer.Config, pool *types.StagingPool, stagers types.Stagers) *Retire

ProvideRetire is called by Wire.

func (*Retire) Start

func (r *Retire) Start(
	ctx *stopper.Context, group *types.TableGroup, bounds *notify.Var[hlc.Range],
) *notify.Var[hlc.Time]

Start a goroutine to ensure that old mutations are eventually discarded. Any staged mutations whose timestamp is less than the minimum value will be purged. This method will return a notification variable that emits the time before which all applied, staged mutations will have been purged.

Jump to

Keyboard shortcuts

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