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

Method Commit

client/v3/leasing/txn.go:52–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50}
51
52func (txn *txnLeasing) Commit() (*v3.TxnResponse, error) {
53 if resp, err := txn.eval(); resp != nil || err != nil {
54 return resp, err
55 }
56 return txn.serverTxn()
57}
58
59func (txn *txnLeasing) eval() (*v3.TxnResponse, error) {
60 // TODO: wait on keys in comparisons

Callers

nothing calls this directly

Calls 2

evalMethod · 0.95
serverTxnMethod · 0.95

Tested by

no test coverage detected