Copyall copies a list of all free ids and all pending ids in one sorted list. f.count returns the minimum length required for dst.
(dst []common.Pgid)
| 205 | // Copyall copies a list of all free ids and all pending ids in one sorted list. |
| 206 | // f.count returns the minimum length required for dst. |
| 207 | func (t *shared) Copyall(dst []common.Pgid) { |
| 208 | m := make(common.Pgids, 0, t.PendingCount()) |
| 209 | for _, txp := range t.pendingPageIds() { |
| 210 | m = append(m, txp.ids...) |
| 211 | } |
| 212 | sort.Sort(m) |
| 213 | common.Mergepgids(dst, t.freePageIds(), m) |
| 214 | } |
| 215 | |
| 216 | func (t *shared) Reload(p *common.Page) { |
| 217 | t.Read(p) |
no test coverage detected