Documentation ¶
Index ¶
- func Resolve(db *pebble.DB, batch *pebble.Batch, key kv.Key, startVer, commitVer kv.Version) error
- func Rollback(db *pebble.DB, batch *pebble.Batch, key kv.Key, startVer kv.Version) error
- type ErrAlreadyCommitted
- type ErrRetryable
- type MultiKeysNotifier
- type Notifier
- type Scheduler
- type Task
- type TxnAction
- type TxnStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrAlreadyCommitted ¶
type ErrAlreadyCommitted uint64
ErrAlreadyCommitted is returned specially when client tries to rollback a committed lock.
func (ErrAlreadyCommitted) Error ¶
func (e ErrAlreadyCommitted) Error() string
type ErrRetryable ¶
type ErrRetryable string
ErrRetryable suggests that client may restart the txn.
func (ErrRetryable) Error ¶
func (e ErrRetryable) Error() string
type MultiKeysNotifier ¶
type MultiKeysNotifier struct {
// contains filtered or unexported fields
}
func (*MultiKeysNotifier) Notify ¶
func (s *MultiKeysNotifier) Notify(err error)
func (*MultiKeysNotifier) Wait ¶
func (s *MultiKeysNotifier) Wait() []error
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler is used to schedule Resolve tasks.
func NewScheduler ¶
Click to show internal directories.
Click to hide internal directories.