Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Detector ¶
type Detector struct {
// contains filtered or unexported fields
}
Detector detects deadlock.
func (*Detector) CleanUpWaitFor ¶
CleanUpWaitFor removes a key in the wait for entry for the transaction.
func (*Detector) Detect ¶
func (d *Detector) Detect(sourceTxn, waitForTxn, keyHash uint64) *ErrDeadlock
Detect detects deadlock for the sourceTxn on a locked key.
type ErrDeadlock ¶
type ErrDeadlock struct {
KeyHash uint64
}
ErrDeadlock is returned when deadlock is detected.
func (*ErrDeadlock) Error ¶
func (e *ErrDeadlock) Error() string
Click to show internal directories.
Click to hide internal directories.