dnservice

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TnStoreCapacity = 32
)

Variables

This section is empty.

Functions

func Check

func Check(
	idAlloc util.IDAllocator,
	cfg hakeeper.Config,
	cluster pb.ClusterInfo,
	tnState pb.TNState,
	user pb.TaskTableUser,
	currTick uint64,
) []*operator.Operator

Check checks tn state and generate operator for expired tn store. The less shard ID, the higher priority. NB: the returned order should be deterministic.

Types

type ShardMapper added in v0.6.0

type ShardMapper interface {
	// contains filtered or unexported methods
}

ShardMapper used to get log shard ID for tn shard

Jump to

Keyboard shortcuts

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