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

Method iterateCommittedEntries

posting/list.go:269–283  ·  view source on GitHub ↗

iterateCommittedEntries is an internal function that's used to calculate delete all marker and iterate. No other function should use this. They should use .iterate() instead.

(f func(uint64, *pb.PostingList))

Source from the content-addressed store, hash-verified

267// iterateCommittedEntries is an internal function that's used to calculate delete all marker and iterate. No other
268// function should use this. They should use .iterate() instead.
269func (mm *MutableLayer) iterateCommittedEntries(f func(uint64, *pb.PostingList)) {
270 if mm == nil {
271 return
272 }
273
274 for ts, pl := range mm.committedEntries {
275 if pl.CommitTs == ts || ts == mm.readTs {
276 f(ts, pl)
277 }
278 }
279
280 if mm.currentEntries != nil {
281 f(mm.readTs, mm.currentEntries)
282 }
283}
284
285// Before iterating, we have to figure out where the last delete marker is
286// Then gather the posts that would be above the marker

Callers 2

populateDeleteAllMethod · 0.95
iterateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected