listappend

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(opts txn.Opts, history core.History) txn.CheckResult

Check checks append and read history for list_append

func RWExplainResult

func RWExplainResult(key string, preValue, value core.MopValueType, amopIndex, bmopIndex int) rwExplainResult

RWExplainResult creates a rwExplainResult

func WRExplainResult

func WRExplainResult(key string, value core.MopValueType, amopIndex, bmopIndex int) wrExplainResult

WRExplainResult creates a wrExplainResult

func WWExplainResult

func WWExplainResult(key string, preValue, value core.MopValueType, amopIndex, bmopIndex int) wwExplainResult

WWExplainResult creates a wwExplainResult value

Types

type DirtyUpdateConflict

type DirtyUpdateConflict struct {
	Key      string
	Values   []core.MopValueType
	Op1, Op2 core.Op
}

DirtyUpdateConflict records a dirty update conflict

func (DirtyUpdateConflict) IAnomaly

func (d DirtyUpdateConflict) IAnomaly()

IAnomaly ...

func (DirtyUpdateConflict) String

func (d DirtyUpdateConflict) String() string

type G1Conflict

type G1Conflict struct {
	Op      core.Op
	Mop     core.Mop
	Writer  core.Op
	Element core.MopValueType
}

G1Conflict records a G1 conflict

func (G1Conflict) IAnomaly

func (g G1Conflict) IAnomaly()

IAnomaly ...

func (G1Conflict) String

func (g G1Conflict) String() string

String ...

type GCaseTp

type GCaseTp []core.Anomaly

GCaseTp type aliases []core.Anomaly

type InternalConflict

type InternalConflict struct {
	Op       core.Op
	Mop      core.Mop
	Expected core.MopValueType
}

InternalConflict records a internal conflict

func (InternalConflict) IAnomaly

func (i InternalConflict) IAnomaly()

IAnomaly ...

func (InternalConflict) String

func (i InternalConflict) String() string

String ...

Jump to

Keyboard shortcuts

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