server

package
v2.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const AlwaysRetryBoundary = 0

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalSessionLocker

type GlobalSessionLocker interface {
	TryLock(session *apis.GlobalSession, timeout time.Duration) (bool, error)

	Unlock(session *apis.GlobalSession)
}

type TransactionCoordinator

type TransactionCoordinator struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewTransactionCoordinator

func NewTransactionCoordinator(conf *config.Configuration) *TransactionCoordinator

func (*TransactionCoordinator) Begin

func (*TransactionCoordinator) BranchCommunicate added in v2.0.4

func (*TransactionCoordinator) BranchRegister

func (*TransactionCoordinator) BranchReport

func (*TransactionCoordinator) Commit

func (*TransactionCoordinator) GetStatus

func (*TransactionCoordinator) GlobalReport

func (*TransactionCoordinator) IsRollingBackDead added in v2.0.7

func (tc *TransactionCoordinator) IsRollingBackDead(gt *model.GlobalTransaction) bool

func (*TransactionCoordinator) LockQuery

func (*TransactionCoordinator) Rollback

type UnimplementedGlobalSessionLocker

type UnimplementedGlobalSessionLocker struct {
}

func (*UnimplementedGlobalSessionLocker) TryLock

func (locker *UnimplementedGlobalSessionLocker) TryLock(session *apis.GlobalSession, timeout time.Duration) (bool, error)

func (*UnimplementedGlobalSessionLocker) Unlock

func (locker *UnimplementedGlobalSessionLocker) Unlock(session *apis.GlobalSession)

Jump to

Keyboard shortcuts

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