lock

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Ensures only a single instance is performing migrations at a time.
	GlobalMigrate = uint32(0x1337) // 4919

	// Currently unused.
	GlobalEngineProcessing = uint32(0x1234) // 4660

	// Ensures only a single instance is sending messages,
	// this includes out-of-transaction processes.
	GlobalMessageSending = uint32(0x1330) // 4912

	// Currently unused.
	RegionalEngineProcessing = uint32(0x1342) // 4930

	// Currently unused.
	ModularEngineProcessing = uint32(0x1347) // 4935

	// A shared lock is grabbed by the application, and exclusive
	// lock during the final sync as a stop-the-world lock for the
	// atomic DB switch.
	GlobalSwitchOver = uint32(0x1111) // 4369

	// Used exclusively by engine instances to elect a leader.
	//
	// Only the instance and connection with this lock is allowed
	// to perform trigger updates and syncronization.
	//
	// It must be acquired before the global switchover lock.
	GlobalSwitchOverExec = uint32(0x1112) // 4370
)

Defined global lock values.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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