()
| 107 | } |
| 108 | |
| 109 | func newMutableLayer() *MutableLayer { |
| 110 | return &MutableLayer{ |
| 111 | committedEntries: make(map[uint64]*pb.PostingList), |
| 112 | readTs: 0, |
| 113 | deleteAllMarker: math.MaxUint64, |
| 114 | length: math.MaxInt, |
| 115 | committedUids: make(map[uint64]*pb.Posting), |
| 116 | committedUidsTime: math.MaxUint64, |
| 117 | isUidsCalculated: false, |
| 118 | calculatedUids: []uint64{}, |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | func (mm *MutableLayer) setTs(readTs uint64) { |
| 123 | if mm == nil { |
no outgoing calls
searching dependent graphs…