package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Functions

CalculateThreshold calculates the GC threshold given the policy and the current view of time.
Run runs garbage collection for the specified range on the provided snapshot (which is not mutated).
TimestampForThreshold inverts CalculateThreshold.

# Constants

KeyVersionChunkBytes is the threshold size for splitting GCRequests into multiple batches.

# Variables

AdmissionPriority determines the admission priority level to use for MVCC GC work.
ClearRangeMinKeys is a minimum number of keys that GC will consider for executing a ClearRange request.
LockAgeThreshold is the threshold after which an extant locks will be resolved.
MaxLockKeyBytesPerCleanupBatch is the maximum lock bytes that GC will try to send as a single batch to resolution.
MaxLocksPerCleanupBatch is the maximum number of locks that GC will send for resolution as a single batch.
TxnCleanupThreshold is the threshold after which a transaction is considered abandoned and fit for removal, as measured by the maximum of its last heartbeat and read timestamp.

# Structs

Info contains statistics and insights from a GC run.
NoopGCer implements GCer by doing nothing.
RunOptions contains collection of limits that GC run applies when performing operations.
Threshold holds the key and txn span GC thresholds, respectively.

# Interfaces

A GCer is an abstraction used by the MVCC GC queue to carry out chunked deletions.
PureGCer is part of the GCer interface.
Thresholder is part of the GCer interface.

# Type aliases

CleanupIntentsFunc synchronously resolves the supplied intents (which may be PENDING, in which case they are first pushed) while taking care of proper batching.
CleanupTxnIntentsAsyncFunc asynchronously cleans up intents from a transaction record, pushing the transaction first if it is PENDING.