MCPcopy
hub / github.com/dgraph-io/dgraph / uniqueKey

Method uniqueKey

dgraph/cmd/zero/raft.go:89–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87}
88
89func (n *node) uniqueKey() uint64 {
90 return atomic.AddUint64(&proposalKey, 1)
91}
92
93var errInternalRetry = errors.New("Retry Raft proposal internally")
94

Callers 2

proposeAndWaitMethod · 0.95
TestProposalKeyFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestProposalKeyFunction · 0.76