File size: 1,020 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package lock

// Defined global lock values.
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 synchronization.
	//
	// It must be acquired before the global switchover lock.
	GlobalSwitchOverExec = uint32(0x1112) // 4370
)