MCPcopy
hub / github.com/etcd-io/etcd / txnOrdering

Struct txnOrdering

client/v3/ordering/kv.go:93–101  ·  view source on GitHub ↗

txnOrdering ensures that serialized requests do not return txn responses with revisions less than the previous returned revision.

Source from the content-addressed store, hash-verified

91// txn responses with revisions less than the previous
92// returned revision.
93type txnOrdering struct {
94 clientv3.Txn
95 *kvOrdering
96 ctx context.Context
97 mu sync.Mutex
98 cmps []clientv3.Cmp
99 thenOps []clientv3.Op
100 elseOps []clientv3.Op
101}
102
103func (txn *txnOrdering) If(cs ...clientv3.Cmp) clientv3.Txn {
104 txn.mu.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected