MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / CacheAt

Method CacheAt

posting/oracle.go:233–241  ·  view source on GitHub ↗
(ts uint64)

Source from the content-addressed store, hash-verified

231}
232
233func (o *oracle) CacheAt(ts uint64) *LocalCache {
234 o.RLock()
235 defer o.RUnlock()
236 txn, ok := o.pendingTxns[ts]
237 if !ok {
238 return nil
239 }
240 return txn.cache
241}
242
243// MinPendingStartTs returns the min start ts which is currently pending a commit or abort decision.
244func (o *oracle) MinPendingStartTs() uint64 {

Callers 1

processTaskFunction · 0.80

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by

no test coverage detected