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

Method Store

posting/oracle.go:193–195  ·  view source on GitHub ↗

Store is used by tests.

(pl *List)

Source from the content-addressed store, hash-verified

191
192// Store is used by tests.
193func (txn *Txn) Store(pl *List) *List {
194 return txn.cache.SetIfAbsent(string(pl.key), pl)
195}
196
197type oracle struct {
198 x.SafeMutex

Callers 12

upsertGuardianFunction · 0.45
upsertGrootFunction · 0.45
proposeAndWaitMethod · 0.45
blockTabletMethod · 0.45
TestReverseIndexFunction · 0.45
initFunction · 0.45
commitTransactionFunction · 0.45
proposeAndWaitMethod · 0.45
initMemoryLayerFunction · 0.45
upMethod · 0.45
updatingSchemaMethod · 0.45

Calls 1

SetIfAbsentMethod · 0.80

Tested by 2

TestReverseIndexFunction · 0.36
commitTransactionFunction · 0.36