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))
| 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. |
| 269 | func (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 |
no outgoing calls
no test coverage detected