(startTs, commitTs uint64)
| 86 | } |
| 87 | |
| 88 | func (l *List) commitMutation(startTs, commitTs uint64) error { |
| 89 | l.Lock() |
| 90 | plist := l.mutationMap.get(startTs) |
| 91 | l.Unlock() |
| 92 | l.setMutationAfterCommit(startTs, commitTs, plist, false) |
| 93 | |
| 94 | // We have a valid commit. |
| 95 | |
| 96 | // In general, a posting list shouldn't try to mix up it's job of keeping |
| 97 | // things in memory, with writing things to disk. A separate process can |
| 98 | // roll up and write them to disk. posting list should only keep things in |
| 99 | // memory, to make it available for transactions. So, all we need to do here |
| 100 | // is to roll them up periodically, now being done by draft.go. |
| 101 | // For the PLs in memory, we roll them up after we do the disk rollup. |
| 102 | return nil |
| 103 | } |
| 104 | |
| 105 | func TestGetSinglePosting(t *testing.T) { |
| 106 | key := x.DataKey(x.AttrInRootNamespace("GetSinglePosting"), 123) |
no test coverage detected