cockroach: github.com/cockroachdb/cockroach/pkg/jobs/jobsprotectedts Index | Files

package jobsprotectedts

import "github.com/cockroachdb/cockroach/pkg/jobs/jobsprotectedts"

Index

Package Files

jobs_protected_ts.go

Constants

const MetaType = "jobs"

MetaType is the value used in the ptpb.Record.MetaType field for records associated with jobs.

This value must not be changed as it is used durably in the database.

func MakeRecord Uses

func MakeRecord(
    id uuid.UUID, jobID int64, tsToProtect hlc.Timestamp, spans []roachpb.Span,
) *ptpb.Record

MakeRecord makes a protected timestamp record to protect a timestamp on behalf of this job.

func MakeStatusFunc Uses

func MakeStatusFunc(jr *jobs.Registry) ptreconcile.StatusFunc

MakeStatusFunc returns a function which determines whether the job implied with this value of meta should be removed by the reconciler.

Package jobsprotectedts imports 10 packages (graph) and is imported by 12 packages. Updated 2020-08-12. Refresh now. Tools for package owners.